File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,18 +11,15 @@ const ManagedForm = () => {
1111 } ;
1212 return (
1313 < div className = '' >
14- < FetchFormsProvider permission = '92a7a5221aef332efa00bd23012ad6b2 ' >
14+ < FetchFormsProvider permission = 'API_TOKEN ' >
1515 < div className = 'text-3xl' > Managed Form</ div >
1616 < p className = 'text-gray-500' >
1717 The easiest way to use Fetch Forms. Pass in a form slug and we'll do
1818 the rest.
1919 </ p >
2020 < br />
2121 < div >
22- < FetchForm
23- slug = 'fcd4ca8b-12d4-4b8c-882d-00144d54d02c'
24- onSubmit = { onSubmit }
25- />
22+ < FetchForm slug = 'FORM_SLUG' onSubmit = { onSubmit } />
2623 </ div >
2724 </ FetchFormsProvider >
2825 </ div >
Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ import './styles.css';
1414
1515const HookForm = ( ) => {
1616 // 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' ) ;
2018
2119 const onFinish = ( values ) => {
2220 console . log ( 'Success:' , values ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import HookForm from './HookForm';
44
55const HookParent = ( ) => {
66 return (
7- < FetchFormsProvider permission = '92a7a5221aef332efa00bd23012ad6b2 ' >
7+ < FetchFormsProvider permission = 'API_TOKEN ' >
88 < HookForm />
99 </ FetchFormsProvider >
1010 ) ;
You can’t perform that action at this time.
0 commit comments