this is my code
import React from 'react';
import {
List,
Datagrid,
TextField,
DateField,
Filter,
TextInput,
} from 'admin-on-rest/lib/mui';
const fsFilter = props => (
<Filter {...props}>
<TextInput label="Search" source="q" alwaysOn />
</Filter>
);
export const fsList = props => (
<List
{...props}
filters={<fsFilter />}
>
...
I want to use filters in my list (search input) but I'm getting 2 warnings
Warning: Unknown props `showFilter`, `displayedFilters`, `filterValues`, `context` on <fsFilter> tag. Remove these props from the element...
and
Warning: Unknown props `hideFilter`, `setFilters` on <fsFilter> tag. Remove these props from the element...
what's wrong?