Skip to content

Commit

Permalink
Fix a deprecated @storybook/addon-docs import
Browse files Browse the repository at this point in the history
  • Loading branch information
marco authored and westwood846 committed Sep 9, 2021
1 parent 4d51226 commit 6efa892
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/General/Icon/Icon.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs/blocks';
import { Meta } from '@storybook/addon-docs';
import * as AllIcons from './components';
import { IconGallery, IconSampler } from './IconStoriesHelpers';
import { Box } from '../../Layout/Box/index.tsx';
Expand Down
2 changes: 1 addition & 1 deletion src/Layout/GlintsContainer/GlintsContainer.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs/blocks';
import { Meta } from '@storybook/addon-docs';

<Meta title="Utilities/GlintsContainer" />

Expand Down
36 changes: 14 additions & 22 deletions src/Layout/Grid/Grid.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Meta } from '@storybook/addon-docs/blocks';
import { Meta } from '@storybook/addon-docs';
import Grid from './index';
import { Cell } from './GridStoriesHelpers';
import { times, constant } from 'lodash';
import { Box } from '../Box'
import { Box } from '../Box';

<Meta title="Layout/Grid" />

Expand All @@ -14,14 +14,10 @@ The grid is divided into 12 columns. Use the properties `xs` (extra small), `sm`
<Grid>
<Grid.Row>
<Grid.Col xs={12} sm={3} md={9}>
<Cell>
Foo
</Cell>
</Grid.Col>
<Cell>Foo</Cell>
</Grid.Col>
<Grid.Col xs={12} sm={9} md={3}>
<Cell>
Bar
</Cell>
<Cell>Bar</Cell>
</Grid.Col>
</Grid.Row>
<Grid.Row>
Expand Down Expand Up @@ -57,14 +53,10 @@ The grid is divided into 12 columns. Use the properties `xs` (extra small), `sm`
<Grid>
<Grid.Row justifyContent="center">
<Grid.Col xs={12} md={3}>
<Cell>
Foo
</Cell>
</Grid.Col>
<Cell>Foo</Cell>
</Grid.Col>
<Grid.Col xs={12} md={3}>
<Cell>
Bar
</Cell>
<Cell>Bar</Cell>
</Grid.Col>
</Grid.Row>
</Grid>
Expand Down Expand Up @@ -93,13 +85,13 @@ The grid is divided into 12 columns. Use the properties `xs` (extra small), `sm`
<Grid>
<Grid.Row alignContent="center">
<Grid.Col xs={12} md={3}>
<Cell>
Foo
</Cell>
</Grid.Col>
<Cell>Foo</Cell>
</Grid.Col>
<Grid.Col xs={12} md={3}>
<Cell>
Bar<br/>Foo
Bar
<br />
Foo
</Cell>
</Grid.Col>
</Grid.Row>
Expand All @@ -121,4 +113,4 @@ The grid is divided into 12 columns. Use the properties `xs` (extra small), `sm`
</Grid.Col>
</Grid.Row>
</Grid>
```
```
2 changes: 1 addition & 1 deletion src/Utils/Breakpoints.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs/blocks';
import { Meta } from '@storybook/addon-docs';
import { ScreenSize, Device } from './StyleConfig';

<Meta title="Utilities/Breakpoints" />
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Colors.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs/blocks';
import { Meta } from '@storybook/addon-docs';
import { PrimaryColor, Greyscale, SecondaryColor } from './Colors';
import { getReadableColor } from './getReadableColor';
import { ColorSampler, ColorSample } from './ColorsStoriesHelpers';
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Shadow/Shadows.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Fragment } from 'react';
import { Meta } from '@storybook/addon-docs/blocks';
import { Meta } from '@storybook/addon-docs';
import { Shadow } from './';
import {
levels,
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Introduction.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs/blocks';
import { Meta } from '@storybook/addon-docs';
const { version } = require('../../package.json');
import { AriesStatus } from './story-components/AriesStatus';

Expand Down

0 comments on commit 6efa892

Please sign in to comment.