Skip to content

Commit

Permalink
fix: storybook icon config
Browse files Browse the repository at this point in the history
- remove '@tablecheck/tablekit-free-icon-config' import from
`preview.tsx`

- add '@tablecheck/tablekit-free-icon-config' imports to all
stories that include icons

Fixes #5
  • Loading branch information
wahidfarid committed Aug 4, 2021
1 parent debd282 commit 79d8371
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
CLASSIC_COLORS,
DARK_COLORS
} from '@tablecheck/tablekit-theme';
import '@tablecheck/tablekit-free-icon-config';
import * as React from 'react';
import { useDarkMode } from 'storybook-dark-mode';

Expand Down
1 change: 1 addition & 0 deletions packages/avatar/src/Avatar.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { styled } from '@storybook/theming';
import { Meta, Story, Canvas, Props } from '@storybook/addon-docs/blocks';
import '@tablecheck/tablekit-free-icon-config';
import { Avatar } from './Avatar';

export const AvatarWrapper = styled.div`
Expand Down
1 change: 1 addition & 0 deletions packages/footer/src/Footer.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@tablecheck/tablekit-free-icon-config';
import { Footer } from './index';

<Meta title="Components/Footer" component={Footer} parameters={{}} />
Expand Down
1 change: 1 addition & 0 deletions packages/gallery/src/Gallery.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Meta, Story, Canvas, Props } from '@storybook/addon-docs/blocks';
import '@tablecheck/tablekit-free-icon-config';

import { Gallery } from './index';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { faLanguage } from '@fortawesome/free-solid-svg-icons/faLanguage';
import { Meta } from '@storybook/react';
import { ordered } from '@tablecheck/locales';
import { Icon } from '@tablecheck/tablekit-icon';
import '@tablecheck/tablekit-free-icon-config';
import { Item, ItemBorderPosition } from '@tablecheck/tablekit-item';
import { Size, Spacing } from '@tablecheck/tablekit-theme';
import { useState } from 'react';
Expand Down
1 change: 1 addition & 0 deletions packages/password-field/src/PasswordField.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Meta, Story, Canvas, Props } from '@storybook/addon-docs/blocks';
import '@tablecheck/tablekit-free-icon-config';
import { PasswordField, ScoreLevel } from './index';

<Meta
Expand Down
1 change: 1 addition & 0 deletions packages/sidenav/src/Sidenav.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Meta, Story, Canvas, Props } from '@storybook/addon-docs/blocks';
import '@tablecheck/tablekit-free-icon-config';
import { SideNav, SideNavProvider } from './index';

<Meta title="Components/SideNav" component={SideNav} parameters={{}} />
Expand Down
1 change: 1 addition & 0 deletions packages/tag/src/Tag.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Meta, Story, Canvas, Props } from '@storybook/addon-docs/blocks';
import '@tablecheck/tablekit-free-icon-config';
import { Tag } from './index';

<Meta title="Components/Tag" component={Tag} parameters={{}} />
Expand Down
1 change: 1 addition & 0 deletions packages/toggle/src/Toggle.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Meta, Story, Canvas, Props } from '@storybook/addon-docs/blocks';
import '@tablecheck/tablekit-free-icon-config';
import { Toggle, config } from './index';

<Meta title="Components/Toggle" component={Toggle} parameters={{}} />
Expand Down

0 comments on commit 79d8371

Please sign in to comment.