diff options
author | bobzel <zzzman@gmail.com> | 2021-07-21 09:27:05 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-07-21 09:27:05 -0400 |
commit | 491fb6fc41792b1dfe7e3f9210b07a6b8e1eb0a7 (patch) | |
tree | 565311aae67206a137d3785101d7c18ab7d385b4 /src | |
parent | fff9e78427c0373a2a0843d6d8ac1aa24ed7b9e2 (diff) | |
parent | d5030554055d7f11caba3d95f3d082dbf066f55c (diff) |
Merge branch 'master' of https://github.com/brown-dash/Dash-Web
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx index a8d901f4d..f75179cea 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx @@ -351,16 +351,13 @@ export class CollectionSchemaDateCell extends CollectionSchemaCell { //} } - // If the cell is not clicked on, render the date normally. Otherwise, render a date picker. render() { - return !this.props.isFocused ? <span style={{ paddingLeft: 20 + "px" }} onPointerDown={this.onPointerDown}>{this._date ? Field.toString(this._date as Field) : "--"}</span> : - <div style={{ paddingLeft: 20 + "px" }}> - <DatePicker - selected={this._date?.date || new Date} - onSelect={date => this.handleChange(date)} - onChange={date => this.handleChange(date)} - /> - </div> + return !this.props.isFocused ? <span onPointerDown={this.onPointerDown}>{this._date ? Field.toString(this._date as Field) : "--"}</span> : + <DatePicker + selected={this._date?.date || new Date} + onSelect={date => this.handleChange(date)} + onChange={date => this.handleChange(date)} + />; } } |