Migrate EmptyState to Storybook
This commit is contained in:
parent
2cd187abaf
commit
8975b3473c
2 changed files with 15 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
||||||
### Media Empty State
|
|
||||||
|
|
||||||
```js
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
position: 'relative',
|
|
||||||
width: '100%',
|
|
||||||
height: 200,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<EmptyState label={util.i18n('mediaEmptyState')} />
|
|
||||||
</div>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Documents Empty State
|
|
||||||
|
|
||||||
```js
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
position: 'relative',
|
|
||||||
width: '100%',
|
|
||||||
height: 500,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<EmptyState label={util.i18n('documentsEmptyState')} />
|
|
||||||
</div>
|
|
||||||
```
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { storiesOf } from '@storybook/react';
|
||||||
|
import { text, withKnobs } from '@storybook/addon-knobs';
|
||||||
|
import { EmptyState } from './EmptyState';
|
||||||
|
|
||||||
|
const story = storiesOf(
|
||||||
|
'Components/Conversation/MediaGallery/EmptyState',
|
||||||
|
module
|
||||||
|
);
|
||||||
|
|
||||||
|
story.addDecorator((withKnobs as any)({ escapeHTML: false }));
|
||||||
|
|
||||||
|
story.add('Default', () => {
|
||||||
|
return <EmptyState label={text('label', 'placeholder text')} />;
|
||||||
|
});
|
Loading…
Reference in a new issue