addon story updated

This commit is contained in:
NikolaBorislavovHristov 2019-12-19 14:20:51 +02:00
parent e9850ad498
commit b399794166
3 changed files with 19 additions and 17 deletions

View file

@ -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' }}
/>
));

View file

@ -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' }}
/>
));

View file

@ -1,3 +1,3 @@
.installed-addon-container, .not-installed-addon-container {
margin: 10px;
margin: 1rem;
}