这是我的代码
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 />}
>
...
我想在我的列表中使用过滤器(搜索输入),但我得到2个警告
Warning: Unknown props `showFilter`, `displayedFilters`, `filterValues`, `context` on <fsFilter> tag. Remove these props from the element...
和
Warning: Unknown props `hideFilter`, `setFilters` on <fsFilter> tag. Remove these props from the element...
出了什么问题?