You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove the `optimized` prop (which isn't necessary anymore)
1880
+
- Rename the keys in `sx` prop from `"& .RaDatagrid-xxxx"` to `"& .RaDataTable-xxxx"`.
1881
+
- Replace simple `<TextField>` with `<DataTable.Col>`.
1882
+
- Replace simple `<NumberField>` with `<DataTable.NumberCol>`.
1883
+
- Wrap all other fields in `<DataTable.Col>`, keeping `source` and `label` properties in `<DataTable.Col>`.
1884
+
- Replace `Datagrid` imports by `DataTable`, and remove unused `TextField` and `NumberField` imports if they are now all replaced.
1885
+
1886
+
However, the codemod will **not**:
1887
+
1888
+
- Replace `<DatagridConfigurable>` with `<DataTable>` (column selection is now natively supported by `<DataTable>`).
1889
+
- Remove the `sortBy` and `sortable` props on fields (sorting is now managed by `<DataTable.Col source>`)
1890
+
- Move the `sortByOrder` prop from the field to `<DataTable.Col>`
1891
+
- Replace a `<FunctionField>` child with `<DataTable.Col render>`
1892
+
- Replace `<Datagrid>` from `@react-admin/ra-rbac` (and all its children). Refer to [Access Control section](#access-control) to use `<DataTable>` with `<CanAccess>`.
1893
+
- Move the column styles from `<Datagrid sx>` to the individual `<DataTable.Col sx>`
0 commit comments