Skip to content

Commit 39f3651

Browse files
authored
Update README.md
1 parent 1e13a5e commit 39f3651

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/ra-input-rich-text/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Use it as you would any react-admin inputs:
1818
import { Edit, SimpleForm, TextInput } from 'react-admin';
1919
import { 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):
3838
import { Edit, SimpleForm, TextInput } from 'react-admin';
3939
import { 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" />} />

0 commit comments

Comments
 (0)