mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Horizontal nav bar with back button added to storybook
This commit is contained in:
parent
9fdffde8d1
commit
a2f7fb269f
3 changed files with 15 additions and 2 deletions
|
|
@ -1,11 +1,9 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const HorizontalNavBar = require('stremio/common/HorizontalNavBar');
|
||||
const styles = require('./styles');
|
||||
|
||||
storiesOf('NavBar', module).add('HorizontalNavBar', () => (
|
||||
<HorizontalNavBar
|
||||
className={styles['nav-bar']}
|
||||
backButton={false}
|
||||
searchBar={true}
|
||||
addonsButton={true}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
const React = require('react');
|
||||
const { storiesOf } = require('@storybook/react');
|
||||
const HorizontalNavBar = require('stremio/common/HorizontalNavBar');
|
||||
|
||||
storiesOf('NavBar', module).add('HorizontalNavBarWithBackButton', () => (
|
||||
<HorizontalNavBar
|
||||
backButton={true}
|
||||
searchBar={true}
|
||||
addonsButton={true}
|
||||
fullscreenButton={true}
|
||||
notificationsMenu={true}
|
||||
navMenu={false}
|
||||
/>
|
||||
));
|
||||
|
|
@ -1 +1,2 @@
|
|||
require('./HorizontalNavBar');
|
||||
require('./HorizontalNavBarWithBackButton');
|
||||
|
|
|
|||
Loading…
Reference in a new issue