cleanup: Fix naming after withList -> withMulti change

This commit is contained in:
Sara Itani 2018-09-14 22:17:08 -07:00
parent 2d4889abcc
commit 565cda5979

View file

@ -72,14 +72,14 @@ class Datatable extends PureComponent {
...this.props.options
}
const DatatableWithList = withMulti(options)(Components.DatatableContents);
const DatatableWithMulti = withMulti(options)(Components.DatatableContents);
const canInsert = collection.options && collection.options.mutations && collection.options.mutations.new && collection.options.mutations.new.check(this.props.currentUser);
return (
<div className={`datatable datatable-${collection.options.collectionName}`}>
<Components.DatatableAbove {...this.props} collection={collection} canInsert={canInsert} value={this.state.value} updateQuery={this.updateQuery} />
<DatatableWithList {...this.props} collection={collection} terms={{query: this.state.query, orderBy: this.state.currentSort }} currentUser={this.props.currentUser} toggleSort={this.toggleSort} currentSort={this.state.currentSort}/>
<DatatableWithMulti {...this.props} collection={collection} terms={{query: this.state.query, orderBy: this.state.currentSort }} currentUser={this.props.currentUser} toggleSort={this.toggleSort} currentSort={this.state.currentSort}/>
</div>
)
}