1 |
|
2 | import React from 'react';
|
3 | import { storiesOf } from '@storybook/react';
|
4 |
|
5 | import Pricing from '../src/components/content-pricing';
|
6 |
|
7 | const offerPrice = '74.99';
|
8 | const listPrice = '174.95';
|
9 |
|
10 | storiesOf('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 />);
|