UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

127 lines (122 loc) 3.68 kB
import r from 'r-dom'; import { storify, defaultRailsContext } from '../../Styleguide/withProps'; import { Image } from '../../../models/ImageModel'; import MenuMobile from './MenuMobile'; const { storiesOf } = storybookFacade; const containerStyle = { style: { minWidth: '100px', background: 'white', height: '768px' } }; storiesOf('Top bar') .add('MenuMobile: basic state', () => ( r(storify( r(MenuMobile, { marketplaceContext: defaultRailsContext, name: 'Menu', color: '#a64c5d', identifier: 'menu', menuLinksTitle: 'menu links', menuLinks: [ { type: 'menuitem', href: '#', content: 'Link', active: false, activeColor: '#a64c5d', }, { type: 'menuitem', href: '#', content: 'Link2', active: true, activeColor: '#a64c5d', }, { type: 'menuitem', href: '#', content: 'Lorem ipsum dolor sit amet consectetur adepisci velit', active: false, activeColor: '#a64c5d', external: true, }, ], userLinksTitle: 'User', userLinks: [ { type: 'menuitem', href: '#', content: 'Inbox', active: false, activeColor: '#a64c5d', }, { type: 'menuitem', href: '#', content: 'Profile', active: true, activeColor: '#a64c5d', }, { type: 'menuitem', href: '#', content: 'Manage Listings', active: false, activeColor: '#a64c5d', }, { type: 'menuitem', href: '#', content: 'Settings', active: false, activeColor: '#a64c5d', }, { type: 'menuitem', href: '#', content: 'Logout', active: false, activeColor: '#a64c5d', }, ], languages: { name: 'Language', color: '#a64c5d', links: [ { href: '#', content: 'English', active: true, activeColor: '#a64c5d', }, { href: '#', content: 'German', active: false, activeColor: '#a64c5d', }, { href: '#', content: 'Spanish', active: false, activeColor: '#a64c5d', }, { href: '#', content: 'Finnish', active: false, activeColor: '#a64c5d', }, ], }, avatar: { image: new Image({ url: 'https://www.gravatar.com/avatar/d0865b2133d55fd507639a0fd1692b9a' }), url: '#', }, newListingButton: { text: 'Post a new listing', url: 'www.example.com/post', mobileLayoutOnly: true, }, } ), containerStyle )) ));