diff --git a/src/widgets/07-ecosystem-screens/provider/context.tsx b/src/widgets/07-ecosystem-screens/provider/context.tsx index 4d92a88..6546cda 100644 --- a/src/widgets/07-ecosystem-screens/provider/context.tsx +++ b/src/widgets/07-ecosystem-screens/provider/context.tsx @@ -9,7 +9,7 @@ export interface IEcosystemFilters { export interface IEcosystemContext { filters: IEcosystemFilters; setFilter: ( - key: T, + key: T, value: IEcosystemFilters[T] ) => void; } @@ -35,16 +35,16 @@ export const EcosystemFilters: React.FC = ({ children }) => { const [state, setState] = useState({ search: '', category: null, - type: null + type: 'Mainnet' // Set the initial type to 'Mainnet' }); const setFilter = ( - key: T, + key: T, value: IEcosystemFilters[T] ) => { setState({ ...state, [key]: value }); } - + return ( {children}