From e152686ec6666ee49f98f6fa61888b62874e3a51 Mon Sep 17 00:00:00 2001 From: Anthony Main Date: Sat, 13 Apr 2024 07:35:20 +0100 Subject: [PATCH 1/2] Update SimpleForm.md --- docs/SimpleForm.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/SimpleForm.md b/docs/SimpleForm.md index dfe5ab401bc..b1117b72f6e 100644 --- a/docs/SimpleForm.md +++ b/docs/SimpleForm.md @@ -16,7 +16,8 @@ The `` creates a `
` to edit a record, and renders its children `` is often used as child of `` or ``. It accepts Input and Field components as children. It relies on [react-hook-form](https://react-hook-form.com/) for form handling. It requires no prop by default. ```jsx -import { Create, SimpleForm, TextInput, RichTextInput, NumberInput } from 'react-admin'; +import { Create, SimpleForm, TextInput, NumberInput } from 'react-admin'; +import RichTextInput from 'ra-input-rich-text'; export const PostCreate = () => ( @@ -832,4 +833,4 @@ export const PostCreate = () => ( ); ``` -React-admin forms leverage react-hook-form's [`useForm` hook](https://react-hook-form.com/docs/useform). \ No newline at end of file +React-admin forms leverage react-hook-form's [`useForm` hook](https://react-hook-form.com/docs/useform). From f6331ba14460a81906709e59d5bbaefa678c0dfb Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kaiser Date: Mon, 15 Apr 2024 09:42:26 +0200 Subject: [PATCH 2/2] [no ci] apply changes from code review Co-authored-by: adrien guernier --- docs/SimpleForm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/SimpleForm.md b/docs/SimpleForm.md index b1117b72f6e..821212a0825 100644 --- a/docs/SimpleForm.md +++ b/docs/SimpleForm.md @@ -17,7 +17,7 @@ The `` creates a `` to edit a record, and renders its children ```jsx import { Create, SimpleForm, TextInput, NumberInput } from 'react-admin'; -import RichTextInput from 'ra-input-rich-text'; +import { RichTextInput } from 'ra-input-rich-text'; export const PostCreate = () => (