sharetribe/sharetribe

View on GitHub
client/app/components/elements/AddNewListingButton/AddNewListingButton.story.js

Summary

Maintainability
A
0 mins
Test Coverage
import withProps from '../../Styleguide/withProps';

import AddNewListingButton from './AddNewListingButton';

const { storiesOf } = storybookFacade;

storiesOf('Top bar')
  .add('AddNewListingButton: default color', () => (
    withProps(AddNewListingButton, {
      text: 'Post a new listing',
      url: '#',
    })))
  .add('AddNewListingButton: custom color', () => (
    withProps(AddNewListingButton, {
      text: 'Some long text from translations here',
      url: '#',
      customColor: 'red',
    })));