Skip to content

Commit

Permalink
feat: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bangarang committed May 9, 2024
1 parent c195824 commit 96d26b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/embedding/react/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const App = () => {

Configures all Workbook Creation request data and an new onRecordHooks helper function

Sheets can be passed along in the `config`, `onSubmit` can be added, along with a new `onRecordHooks` helper.
`onSubmit` and a new `onRecordHooks` helper can be added to the Workbook. A Workbook object containing the sheets can be passed along in the `config`.
`onRecordHooks` takes an array of record hooks. Each one can take a slug for manually setting each per sheet. Otherwise, if no slug is added, it will apply the record hook to the corresponding sheet in the Workbook index.

```tsx
Expand All @@ -88,9 +88,9 @@ Sheets can be passed along in the `config`, `onSubmit` can be added, along with

### Sheet

Similar to the Simplified SDK Approach
The Sheet option is similar to the [Simplified SDK Approach](apps/embedding/reference/simple)..

Configures a Sheet config, with an onRecordHook helper
Configures a Sheet config, with an `onRecordHook` helper

Note: an `onSubmit` can be added to the Workbook Component for ease of use

Expand Down
2 changes: 1 addition & 1 deletion apps/embedding/react/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ First, decide if you want to start from scratch or make changes to an existing p
>
Clone the create-flatfile-react example project in GitHub.
</Card>
<Card title="Start from scratch" href="../react/new_space" icon="pencil">
<Card title="Start from scratch" href="../react/new_space_quickstart" icon="pencil">
Set up an embedded Flatfile Workbook from beginning to end.
</Card>
</CardGroup>
Expand Down
2 changes: 1 addition & 1 deletion mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"pages": [
"apps/embedding/react/guide",
"apps/embedding/react/new_space_quickstart",
"creact/components",
"apps/embedding/react/components",
{
"group": "Legacy",
"icon": "settings",
Expand Down

0 comments on commit 96d26b6

Please sign in to comment.