File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -468,14 +468,15 @@ Add the `warnWhenUnsavedChanges` prop to your Form like so:
468468import React from ' react' ;
469469import {
470470 List ,
471+ ListActions ,
471472 Datagrid ,
472473 SimpleForm ,
473474} from ' react-admin' ;
474475import { CreateDialog } from ' @react-admin/ra-form-layout' ;
475476
476477const CustomerList = () => (
477478 <>
478- <List hasCreate >
479+ <List actions = { < ListActions hasCreate /> } >
479480 <Datagrid rowClick = " edit" >
480481 ...
481482 </Datagrid >
Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ Here is an example:
245245import React from ' react' ;
246246import {
247247 List ,
248+ ListActions ,
248249 Datagrid ,
249250 SimpleForm ,
250251 TextInput ,
@@ -265,7 +266,7 @@ const CustomerEditTitle = () => {
265266
266267const CustomerList = () => (
267268 <>
268- <List hasCreate >
269+ <List actions = { < ListActions hasCreate /> } >
269270 <Datagrid rowClick = " edit" >
270271 ...
271272 </Datagrid >
@@ -510,14 +511,15 @@ Add the `warnWhenUnsavedChanges` prop to your Form like so:
510511import React from ' react' ;
511512import {
512513 List ,
514+ ListActions ,
513515 Datagrid ,
514516 SimpleForm ,
515517} from ' react-admin' ;
516518import { EditDialog } from ' @react-admin/ra-form-layout' ;
517519
518520const CustomerList = () => (
519521 <>
520- <List hasCreate >
522+ <List actions = { < ListActions hasCreate /> } >
521523 <Datagrid rowClick = " edit" >
522524 ...
523525 </Datagrid >
You can’t perform that action at this time.
0 commit comments