File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
docs_headless/src/content/docs Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -18,22 +18,15 @@ yarn add @react-admin/ra-core-ee
1818
1919``` tsx
2020import { EditBase , Form } from ' ra-core' ;
21- import { LockOnMount , useLockCallbacks } from ' @react-admin/ra-core-ee' ;
21+ import { LockOnMount } from ' @react-admin/ra-core-ee' ;
22+ import { TextInput } from ' my-react-admin-ui-lib' ;
2223
2324const PostEdit = () => (
2425 <EditBase >
25- <PostEditForm />
26- <LockOnMount />
26+ <Form >
27+ <TextInput source = " title" />
28+ <LockOnMount />
29+ </Form >
2730 </EditBase >
2831);
29-
30- const PostEditForm = () => {
31- const { isPending, isLocked } = useLockCallbacks ();
32-
33- if (isPending ) {
34- return <p >Loading...</p >;
35- }
36-
37- return <Form disabled = { isLocked } >{ /* ... */ } </Form >;
38- };
3932```
You can’t perform that action at this time.
0 commit comments