- {filterMenu}
+ {element}
diff --git a/src/features/filter/components/filter-wrapper/filter-wrapper.tsx b/src/features/filter/components/filter-wrapper/filter-wrapper.tsx
index aa65b5ac8..a23cc3467 100644
--- a/src/features/filter/components/filter-wrapper/filter-wrapper.tsx
+++ b/src/features/filter/components/filter-wrapper/filter-wrapper.tsx
@@ -1,22 +1,23 @@
-import { useState, useRef, ReactElement, useCallback, useEffect } from 'react';
+import { ReactElement, useCallback, useEffect, useRef, useState } from 'react';
import { FilterButton } from 'features/filter/components/filter-button';
import { FilterCover } from 'features/filter/components/filter-cover';
import { IFilterValues } from 'features/filter/types';
interface FilterWrapperProps {
- filterMenu: ReactElement;
- filterValues: IFilterValues;
+ // filterMenu: ReactElement;
+ filterMenu: { [key in keyof IFilterValues]?: boolean } | undefined;
+ // filterValues: IFilterValues;
setFilteres?: (data: IFilterValues) => void;
- onReset: () => void;
+ // onReset: () => void;
}
export const FilterWrapper = ({
filterMenu,
- filterValues,
setFilteres,
- onReset,
-}: FilterWrapperProps) => {
+}: // filterValues,
+// onReset,
+FilterWrapperProps) => {
const [isFilterMenuVisible, setFilterMenuVisible] = useState(false);
const [filterPosition, setFilterPosition] = useState({ top: 10, right: 0 });
@@ -58,9 +59,9 @@ export const FilterWrapper = ({
closeFilterMenu={toggleFilterMenu}
position={filterPosition}
filterMenu={filterMenu}
- filterValues={filterValues}
+ // filterValues={filterValues}
setFilteres={setFilteres}
- onReset={onReset}
+ // onReset={onReset}
/>
)}
>
diff --git a/src/features/filter/filter.stories.tsx b/src/features/filter/filter.stories.tsx
index aa99e64ee..bc7b6d842 100644
--- a/src/features/filter/filter.stories.tsx
+++ b/src/features/filter/filter.stories.tsx
@@ -57,9 +57,9 @@ type Story = StoryObj