mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
modal dialog with long content added to storybook
This commit is contained in:
parent
8524e342eb
commit
823c111c8a
4 changed files with 14 additions and 1 deletions
|
|
@ -0,0 +1,12 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const { action } = require('@storybook/addon-actions');
|
||||
const { ModalDialog } = require('stremio/common');
|
||||
|
||||
storiesOf('ModalDialog', module).add('ModalDialogWithLongContent', () => (
|
||||
<ModalDialog title={'ModalDialogWithLongContent'} onCloseRequest={action('onCloseRequest')}>
|
||||
<div style={{ height: 1000, background: 'red', color: 'white' }}>
|
||||
1000px height content
|
||||
</div>
|
||||
</ModalDialog>
|
||||
));
|
||||
|
|
@ -0,0 +1 @@
|
|||
require('./ModalDialogWithLongContent');
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const { action } = require('@storybook/addon-actions');
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
require('./SampleModalDialog');
|
||||
require('./ModalDialogWithActionButtons');
|
||||
require('./ModalDialogWithLongContent');
|
||||
|
|
|
|||
Loading…
Reference in a new issue