File tree Expand file tree Collapse file tree 2 files changed +28
-25
lines changed
packages/ra-ui-materialui/src/field Expand file tree Collapse file tree 2 files changed +28
-25
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ export const Empty = () => (
135135 target = "author_id"
136136 empty = "no books"
137137 >
138- < Datagrid >
139- < TextField source = "title" />
140- </ Datagrid >
138+ < DataTable >
139+ < DataTable . Col source = "title" />
140+ </ DataTable >
141141 </ ReferenceManyField >
142142 </ Wrapper >
143143) ;
Original file line number Diff line number Diff line change @@ -255,20 +255,21 @@ export const Empty = () => (
255255 name = "books"
256256 list = { ( ) => (
257257 < List >
258- < Datagrid >
259- < TextField source = "id" />
260- < TextField source = "title" />
261- < TextField source = "year" />
262- < TextField source = "Genre" />
263- < ReferenceOneField
264- reference = "book_details"
265- target = "book_id"
266- label = "ISBN"
267- empty = "no detail"
268- >
269- < TextField source = "ISBN" />
270- </ ReferenceOneField >
271- </ Datagrid >
258+ < DataTable >
259+ < DataTable . Col source = "id" />
260+ < DataTable . Col source = "title" />
261+ < DataTable . Col source = "year" />
262+ < DataTable . Col source = "Genre" />
263+ < DataTable . Col label = "ISBN" >
264+ < ReferenceOneField
265+ reference = "book_details"
266+ target = "book_id"
267+ empty = "no detail"
268+ >
269+ < TextField source = "ISBN" />
270+ </ ReferenceOneField >
271+ </ DataTable . Col >
272+ </ DataTable >
272273 </ List >
273274 ) }
274275 show = { ( ) => (
@@ -296,14 +297,16 @@ export const Empty = () => (
296297 name = "book_details"
297298 list = { ( ) => (
298299 < List >
299- < Datagrid >
300- < TextField source = "id" />
301- < TextField source = "ISBN" />
302- < ReferenceField
303- source = "book_id"
304- reference = "books"
305- />
306- </ Datagrid >
300+ < DataTable >
301+ < DataTable . Col source = "id" />
302+ < DataTable . Col source = "ISBN" />
303+ < DataTable . Col source = "book_id" >
304+ < ReferenceField
305+ source = "book_id"
306+ reference = "books"
307+ />
308+ </ DataTable . Col >
309+ </ DataTable >
307310 </ List >
308311 ) }
309312 create = { ( ) => (
You can’t perform that action at this time.
0 commit comments