UNPKG

705 BJavaScriptView Raw
1/* @flow */
2import React from 'react';
3import { storiesOf } from '@storybook/react';
4
5import Pricing from '../src/components/content-pricing';
6
7const offerPrice = '74.99';
8const listPrice = '174.95';
9
10storiesOf('Content Pricing', module)
11 .add('Has all information', () => <Pricing {...{ offerPrice, listPrice }} />)
12 .add('Missing list price', () => <Pricing {...{ offerPrice }} />)
13 .add('Missing offer price', () => <Pricing {...{ listPrice }} />)
14 .add('Free content', () => <Pricing {...{ offerPrice: '0', listPrice }} />)
15 .add('Free content, missing list price', () => <Pricing {...{ offerPrice: '0' }} />)
16 .add('Missing both prices (why do we allow this?)', () => <Pricing />);