Skip to content

Commit

Permalink
replace deprecated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Siekmann committed Oct 1, 2021
1 parent 9689922 commit 5272048
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions addon/src/components/DesignTokenDocBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext, useMemo } from 'react';

import { DocsContext, DocsContextProps } from '@storybook/addon-docs/blocks';
import { DocsContext, DocsContextProps } from '@storybook/addon-docs';
import { styled } from '@storybook/theming';

import { useTokenTabs } from '../hooks/useTokenTabs';
Expand All @@ -21,9 +21,9 @@ interface CompatDocsContextProps extends DocsContextProps {
* This is a compatibility method to get docs parameters across Storybook versions.
*/
function getMainStory(context: CompatDocsContextProps) {
return typeof context.storyById === 'function' ?
context.storyById(context.id!) :
context;
return typeof context.storyById === 'function'
? context.storyById(context.id!)
: context;
}

export const DesignTokenDocBlock = ({
Expand Down
2 changes: 1 addition & 1 deletion demo/src/design-tokens/animation.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import { DesignTokenDocBlock } from 'storybook-design-token/dist/doc-blocks';

<Meta title="Design Tokens/Animation" />
Expand Down
2 changes: 1 addition & 1 deletion demo/src/design-tokens/borders.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import { DesignTokenDocBlock } from 'storybook-design-token/dist/doc-blocks';

<Meta title="Design Tokens/Borders" />
Expand Down
2 changes: 1 addition & 1 deletion demo/src/design-tokens/colors.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import { DesignTokenDocBlock } from 'storybook-design-token/dist/doc-blocks';

<Meta title="Design Tokens/Colors" />
Expand Down
2 changes: 1 addition & 1 deletion demo/src/design-tokens/typography.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import { DesignTokenDocBlock } from 'storybook-design-token/dist/doc-blocks';

<Meta title="Design Tokens/Typography" />
Expand Down

0 comments on commit 5272048

Please sign in to comment.