Skip to content

Commit

Permalink
chore(react): rename token
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Mar 24, 2023
1 parent f16e9c6 commit 9d4e890
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ STORYBOOK_BASE_URL=
# If this is not defined, the plugin will use the public API to fetch Figma files.
# Leave the placeholder value (<YOUR_FIGMA_ACCESS_TOKEN>) as it is to disable the integration.
# For more information, visit https://storybook.js.org/addons/storybook-addon-designs.
STORYBOOK_FIGMA_ACCESS_TOKEN=<YOUR_FIGMA_ACCESS_TOKEN>
STORYBOOK_DESIGN_ADDON_FIGMA_ACCESS_TOKEN=<YOUR_FIGMA_ACCESS_TOKEN>
2 changes: 1 addition & 1 deletion packages/react/.storybook/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const withDesign = (storyName: string, storyVariation: string, parameters
...parameters,
design: designUrl && {
...parameters?.design,
type: process.env.STORYBOOK_FIGMA_ACCESS_TOKEN && process.env.STORYBOOK_FIGMA_ACCESS_TOKEN !== '<YOUR_FIGMA_ACCESS_TOKEN>'
type: process.env.STORYBOOK_DESIGN_ADDON_FIGMA_ACCESS_TOKEN && process.env.STORYBOOK_DESIGN_ADDON_FIGMA_ACCESS_TOKEN !== '<YOUR_FIGMA_ACCESS_TOKEN>'
? 'figspec'
: 'figma',
url: designUrl,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If you create a personal access token and configure the setup, you could get a b
Create a `.env.local` file under the root of `packages/react`, and add the following environment variable.

```bash
STORYBOOK_FIGMA_ACCESS_TOKEN="<YOUR_FIGMA_ACCESS_TOKEN>"
STORYBOOK_DESIGN_ADDON_FIGMA_ACCESS_TOKEN="<YOUR_FIGMA_ACCESS_TOKEN>"
```

Follow the [official addon documentation](https://pocka.github.io/storybook-addon-designs/?path=/story/docs-figma-figspec-readme--page) for more info.
Expand Down

0 comments on commit 9d4e890

Please sign in to comment.