mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
cleanup: Fix naming after withList -> withMulti change
This commit is contained in:
parent
2d4889abcc
commit
565cda5979
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue