import React from "react"; import { List, Datagrid, TextField, EditButton,BooleanField} from 'react-admin'; const CustomEmpty = () => <div>No books found</div>; const DatagridEmpty = () => ( <List resource="t_geyao_person"> <Datagrid empty={<CustomEmpty />}> <TextField source="id" /> <TextField source='name'></TextField> <TextField source='sex'></TextField> <TextField source='salary'></TextField> <BooleanField source='status'></BooleanField> </Datagrid> </List> ); export default DatagridEmpty