File tree Expand file tree Collapse file tree
packages/ra-input-rich-text Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ Use it as you would any react-admin inputs:
1818import { Edit , SimpleForm , TextInput } from ' react-admin' ;
1919import { RichTextInput } from ' ra-input-rich-text' ;
2020
21- export const PostEdit = (props ) => (
22- < Edit { ... props} >
21+ export const PostEdit = () => (
22+ < Edit>
2323 < SimpleForm>
2424 < TextInput source= " title" / >
2525 < RichTextInput source= " body" / >
@@ -38,8 +38,8 @@ You can leverage this to change the buttons [size](#api):
3838import { Edit , SimpleForm , TextInput } from ' react-admin' ;
3939import { RichTextInput , RichTextInputToolbar } from ' ra-input-rich-text' ;
4040
41- export const PostEdit = (props ) => (
42- < Edit { ... props} >
41+ export const PostEdit = () => (
42+ < Edit>
4343 < SimpleForm>
4444 < TextInput source= " title" / >
4545 < RichTextInput source= " body" toolbar= {< RichTextInputToolbar size= " large" / > } / >
You can’t perform that action at this time.
0 commit comments