mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
storybook Stream component added
This commit is contained in:
parent
91b83adbd6
commit
7032853371
4 changed files with 21 additions and 0 deletions
14
src/stories/Stream/Stream.js
Normal file
14
src/stories/Stream/Stream.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const Stream = require('stremio/routes/MetaDetails/StreamsList/Stream');
|
||||
const styles = require('./styles');
|
||||
|
||||
storiesOf('Stream', module).add('Stream', () => (
|
||||
<Stream
|
||||
className={styles['stream-container']}
|
||||
addonName={'Sample addon name'}
|
||||
title={'1080p'}
|
||||
thumbnail={'images/anonymous.png'}
|
||||
progress={0.6}
|
||||
/>
|
||||
));
|
||||
1
src/stories/Stream/index.js
Normal file
1
src/stories/Stream/index.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
require('./Stream');
|
||||
5
src/stories/Stream/styles.less
Normal file
5
src/stories/Stream/styles.less
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.stream-container {
|
||||
flex: none;
|
||||
width: 28rem;
|
||||
margin: 2rem;
|
||||
}
|
||||
1
src/stories/index.js
Normal file
1
src/stories/index.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
require('./Stream');
|
||||
Loading…
Reference in a new issue