Skip to content

Commit 1449b67

Browse files
committed
Data update
1 parent fa128f5 commit 1449b67

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/examples/ManagedForm.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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>

src/examples/hookform/HookForm.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ import './styles.css';
1414

1515
const 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);

src/examples/hookform/Parent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import HookForm from './HookForm';
44

55
const HookParent = () => {
66
return (
7-
<FetchFormsProvider permission='92a7a5221aef332efa00bd23012ad6b2'>
7+
<FetchFormsProvider permission='API_TOKEN'>
88
<HookForm />
99
</FetchFormsProvider>
1010
);

0 commit comments

Comments
 (0)