mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
SharePrompt stoty updated
This commit is contained in:
parent
db83b7a99c
commit
90193ec75f
2 changed files with 7 additions and 9 deletions
|
|
@ -1,14 +1,13 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const { action } = require('@storybook/addon-actions');
|
||||
const { SharePrompt } = require('stremio/common');
|
||||
const { SharePrompt, ModalDialog } = require('stremio/common');
|
||||
const styles = require('./styles');
|
||||
|
||||
storiesOf('SharePrompt', module).add('SharePrompt', () => (
|
||||
<SharePrompt
|
||||
className={styles['share-prompt-container']}
|
||||
label={'Demo label'}
|
||||
url={'Demo url'}
|
||||
close={action('Demo item closed')}
|
||||
/>
|
||||
<ModalDialog title={'Share Stremio'}>
|
||||
<SharePrompt
|
||||
className={styles['share-prompt-container']}
|
||||
url={'https://stremio.com'}
|
||||
/>
|
||||
</ModalDialog>
|
||||
));
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
.share-prompt-container {
|
||||
width: 24rem;
|
||||
margin: 1rem;
|
||||
}
|
||||
Loading…
Reference in a new issue