Fix coding style
This commit is contained in:
parent
68e5a72618
commit
d805dcd2c6
@ -21,41 +21,41 @@ import {
|
|||||||
} from "react-admin";
|
} from "react-admin";
|
||||||
|
|
||||||
const ListActions = ({
|
const ListActions = ({
|
||||||
currentSort,
|
currentSort,
|
||||||
className,
|
className,
|
||||||
resource,
|
resource,
|
||||||
filters,
|
filters,
|
||||||
displayedFilters,
|
displayedFilters,
|
||||||
exporter, // you can hide ExportButton if exporter = (null || false)
|
exporter, // you can hide ExportButton if exporter = (null || false)
|
||||||
filterValues,
|
filterValues,
|
||||||
permanentFilter,
|
permanentFilter,
|
||||||
hasCreate, // you can hide CreateButton if hasCreate = false
|
hasCreate, // you can hide CreateButton if hasCreate = false
|
||||||
basePath,
|
basePath,
|
||||||
selectedIds,
|
selectedIds,
|
||||||
onUnselectItems,
|
onUnselectItems,
|
||||||
showFilter,
|
showFilter,
|
||||||
maxResults,
|
maxResults,
|
||||||
total,
|
total,
|
||||||
...rest
|
...rest
|
||||||
}) => (
|
}) => (
|
||||||
<TopToolbar className={className} {...sanitizeListRestProps(rest)}>
|
<TopToolbar className={className} {...sanitizeListRestProps(rest)}>
|
||||||
{filters && cloneElement(filters, {
|
{filters && cloneElement(filters, {
|
||||||
resource,
|
resource,
|
||||||
showFilter,
|
showFilter,
|
||||||
displayedFilters,
|
displayedFilters,
|
||||||
filterValues,
|
filterValues,
|
||||||
context: 'button',
|
context: 'button',
|
||||||
})}
|
})}
|
||||||
<CreateButton basePath={basePath} />
|
<CreateButton basePath={basePath} />
|
||||||
<ExportButton
|
<ExportButton
|
||||||
disabled={total === 0}
|
disabled={total === 0}
|
||||||
resource={resource}
|
resource={resource}
|
||||||
sort={currentSort}
|
sort={currentSort}
|
||||||
filter={{ ...filterValues, ...permanentFilter }}
|
filter={{ ...filterValues, ...permanentFilter }}
|
||||||
exporter={exporter}
|
exporter={exporter}
|
||||||
maxResults={maxResults}
|
maxResults={maxResults}
|
||||||
/>
|
/>
|
||||||
</TopToolbar>
|
</TopToolbar>
|
||||||
);
|
);
|
||||||
|
|
||||||
const UserFilter = props => (
|
const UserFilter = props => (
|
||||||
|
Loading…
Reference in New Issue
Block a user