File tree 3 files changed +4
-9
lines changed
3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,15 @@ const ManagedForm = () => {
11
11
} ;
12
12
return (
13
13
< div className = '' >
14
- < FetchFormsProvider permission = '92a7a5221aef332efa00bd23012ad6b2 ' >
14
+ < FetchFormsProvider permission = 'API_TOKEN ' >
15
15
< div className = 'text-3xl' > Managed Form</ div >
16
16
< p className = 'text-gray-500' >
17
17
The easiest way to use Fetch Forms. Pass in a form slug and we'll do
18
18
the rest.
19
19
</ p >
20
20
< br />
21
21
< div >
22
- < FetchForm
23
- slug = 'fcd4ca8b-12d4-4b8c-882d-00144d54d02c'
24
- onSubmit = { onSubmit }
25
- />
22
+ < FetchForm slug = 'FORM_SLUG' onSubmit = { onSubmit } />
26
23
</ div >
27
24
</ FetchFormsProvider >
28
25
</ div >
Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ import './styles.css';
14
14
15
15
const HookForm = ( ) => {
16
16
// FetchFormProvider needs to wrap this component
17
- const [ fetchForm , loading , error ] = useFetchForms (
18
- 'fcd4ca8b-12d4-4b8c-882d-00144d54d02c'
19
- ) ;
17
+ const [ fetchForm , loading , error ] = useFetchForms ( 'FORM_SLUG' ) ;
20
18
21
19
const onFinish = ( values ) => {
22
20
console . log ( 'Success:' , values ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import HookForm from './HookForm';
4
4
5
5
const HookParent = ( ) => {
6
6
return (
7
- < FetchFormsProvider permission = '92a7a5221aef332efa00bd23012ad6b2 ' >
7
+ < FetchFormsProvider permission = 'API_TOKEN ' >
8
8
< HookForm />
9
9
</ FetchFormsProvider >
10
10
) ;
You can’t perform that action at this time.
0 commit comments