mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: globalSearchShow.
This commit is contained in:
@@ -38,9 +38,6 @@ export function ItemsMultiSelect({
|
||||
[isItemSelected],
|
||||
);
|
||||
|
||||
// Count selected items.
|
||||
const countSelected = localSelected.length;
|
||||
|
||||
// Handle item selected.
|
||||
const handleItemSelect = useCallback(
|
||||
({ id }) => {
|
||||
@@ -77,13 +74,16 @@ export function ItemsMultiSelect({
|
||||
[],
|
||||
);
|
||||
|
||||
// Count selected items.
|
||||
const countSelected = itemsSelected().length;
|
||||
|
||||
// Clear Button
|
||||
const clearButton =
|
||||
countSelected > 0 ? (
|
||||
<Button
|
||||
icon="cross"
|
||||
minimal={true}
|
||||
onClick={() => setLocalSelected([])}
|
||||
// onClick={() => setLocalSelected([])}
|
||||
/>
|
||||
) : undefined;
|
||||
|
||||
|
||||
@@ -11,11 +11,7 @@ function Search({
|
||||
openGlobalSearch,
|
||||
closeGlobalSearch,
|
||||
}) {
|
||||
const items = [
|
||||
{ title: 'The Shawshank Redemption', year: 1994 },
|
||||
{ title: 'The Godfather', year: 1972 },
|
||||
{ title: 'The Godfather: Part II', year: 1974 },
|
||||
];
|
||||
const items = [];
|
||||
|
||||
const renderSearch = (search, { handleClick }) => (
|
||||
<MenuItem
|
||||
|
||||
Reference in New Issue
Block a user