123
This commit is contained in:
8
components/BaseTable/BaseTable.tsx
Normal file
8
components/BaseTable/BaseTable.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import { DataTable, type DataTableProps } from 'mantine-datatable';
|
||||
|
||||
// важна стрелочная форма для корректного дженерика в JSX
|
||||
const BaseTable = <T,>(props: DataTableProps<T>) => {
|
||||
return <DataTable withRowBorders withColumnBorders withTableBorder {...props} />;
|
||||
};
|
||||
|
||||
export default BaseTable;
|
||||
Reference in New Issue
Block a user