mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Vertical nav bar added to storybook
This commit is contained in:
parent
a2f7fb269f
commit
dc47e8429b
3 changed files with 20 additions and 0 deletions
18
storybook/stories/NavBar/VerticalNavBar/VerticalNavBar.js
Normal file
18
storybook/stories/NavBar/VerticalNavBar/VerticalNavBar.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const VerticalNavBar = require('stremio/common/VerticalNavBar');
|
||||
|
||||
const TABS = [
|
||||
{ label: 'Board', icon: 'ic_board' },
|
||||
{ label: 'Discover', icon: 'ic_discover' },
|
||||
{ label: 'Library', icon: 'ic_library' },
|
||||
{ label: 'Calendar', icon: 'ic_calendar' },
|
||||
{ label: 'Addons', icon: 'ic_addons' },
|
||||
{ label: 'Settings', icon: 'ic_settings' }
|
||||
];
|
||||
|
||||
storiesOf('NavBar', module).add('VerticalNavBar', () => (
|
||||
<VerticalNavBar
|
||||
tabs={TABS}
|
||||
/>
|
||||
));
|
||||
1
storybook/stories/NavBar/VerticalNavBar/index.js
Normal file
1
storybook/stories/NavBar/VerticalNavBar/index.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
require('./VerticalNavBar');
|
||||
|
|
@ -1 +1,2 @@
|
|||
require('./HorizontalNavBar');
|
||||
require('./VerticalNavBar');
|
||||
|
|
|
|||
Loading…
Reference in a new issue