mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
addon story updated
This commit is contained in:
parent
e9850ad498
commit
b399794166
3 changed files with 19 additions and 17 deletions
|
|
@ -5,16 +5,17 @@ const Addon = require('stremio/routes/Addons/Addon');
|
|||
const styles = require('./styles');
|
||||
|
||||
storiesOf('Addon', module).add('Installed', () => (
|
||||
<Addon
|
||||
<Addon
|
||||
className={styles['installed-addon-container']}
|
||||
id={'addon-id'}
|
||||
name={'Demo name'}
|
||||
logo={'/images/intro_background.jpg'}
|
||||
description={'Demo description'}
|
||||
types={['Demo type']}
|
||||
id={'addon.id'}
|
||||
name={'Addon name'}
|
||||
version={'1.0.0'}
|
||||
transportUrl={'Demo url'}
|
||||
logo={'/images/intro_background.jpg'}
|
||||
description={'Addon description ...'}
|
||||
types={['movie', 'series']}
|
||||
installed={true}
|
||||
toggle={action('Demo item uninstall button clicked')}
|
||||
onToggle={action('Toggle')}
|
||||
onShare={action('Share')}
|
||||
dataset={{ transportUrl: 'http://www.com' }}
|
||||
/>
|
||||
));
|
||||
|
|
|
|||
|
|
@ -6,15 +6,16 @@ const styles = require('./styles');
|
|||
|
||||
storiesOf('Addon', module).add('NotInstalled', () => (
|
||||
<Addon
|
||||
className={styles['not-installed-addon-container']}
|
||||
id={'addon-id'}
|
||||
name={'Demo name'}
|
||||
logo={'/images/intro_background.jpg'}
|
||||
description={'Demo description'}
|
||||
types={['Demo type']}
|
||||
className={styles['installed-addon-container']}
|
||||
id={'addon.id'}
|
||||
name={'Addon name'}
|
||||
version={'1.0.0'}
|
||||
transportUrl={'Demo url'}
|
||||
logo={'/images/intro_background.jpg'}
|
||||
description={'Addon description ...'}
|
||||
types={['movie', 'series']}
|
||||
installed={false}
|
||||
toggle={action('Demo item install button clicked')}
|
||||
onToggle={action('Toggle')}
|
||||
onShare={action('Share')}
|
||||
dataset={{ transportUrl: 'http://www.com' }}
|
||||
/>
|
||||
));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
.installed-addon-container, .not-installed-addon-container {
|
||||
margin: 10px;
|
||||
margin: 1rem;
|
||||
}
|
||||
Loading…
Reference in a new issue