@@ -82,93 +103,87 @@ export const LogsFilters = ({
}
/>
}
- onClearFilter={createClearFilterHandler(onChange, FILTERS.STATUS)}
+ onClearFilter={createClearFilterHandler(adaptedApplyFilters, LOGS_FILTERS.STATUS)}
>
}
- onClearFilter={createClearFilterHandler(onChange, FILTERS.CAPABILITY)}
+ onClearFilter={createClearFilterHandler(adaptedApplyFilters, LOGS_FILTERS.CAPABILITY)}
>
}
- onClearFilter={createClearFilterHandler(onChange, FILTERS.START_DATE)}
+ onClearFilter={createClearFilterHandler(adaptedApplyFilters, LOGS_FILTERS.START_DATE)}
>
}
- onClearFilter={createClearFilterHandler(onChange, FILTERS.END_DATE)}
+ onClearFilter={createClearFilterHandler(adaptedApplyFilters, LOGS_FILTERS.END_DATE)}
>
}
- onClearFilter={createClearFilterHandler(onChange, FILTERS.USER)}
+ onClearFilter={createClearFilterHandler(adaptedApplyFilters, LOGS_FILTERS.USER)}
>
onChange({ name: FILTERS.USER, values })}
+ value={activeFilters[LOGS_FILTERS.USER]?.toString()}
+ onChange={values => adaptedApplyFilters({ name: LOGS_FILTERS.USER, values })}
/>
);
};
-
-LogsFilters.propTypes = {
- onChange: PropTypes.func,
- activeFilters: PropTypes.object,
- resetFilter: PropTypes.func,
-};
diff --git a/src/components/BulkEditList/BulkEditListFilters/LogsFilters/LogsFilters.test.js b/src/components/BulkEditList/BulkEditListSidebar/LogsTab/LogsTab.test.js
similarity index 97%
rename from src/components/BulkEditList/BulkEditListFilters/LogsFilters/LogsFilters.test.js
rename to src/components/BulkEditList/BulkEditListSidebar/LogsTab/LogsTab.test.js
index e342893e..e8d18531 100644
--- a/src/components/BulkEditList/BulkEditListFilters/LogsFilters/LogsFilters.test.js
+++ b/src/components/BulkEditList/BulkEditListSidebar/LogsTab/LogsTab.test.js
@@ -16,7 +16,7 @@ import '../../../../../test/jest/__mock__';
import { queryClient } from '../../../../../test/jest/utils/queryClient';
-import { LogsFilters } from './LogsFilters';
+import { LogsTab } from './LogsTab';
const activeFiltersMock = {
STATUS: ['New'],
@@ -34,7 +34,7 @@ const renderLogsFilters = () => {
render(