1 | import { storiesOf } from '@storybook/react';
|
2 | import * as React from 'react';
|
3 | import { FeedbackActionCard } from '../components/FeedbackActionCard';
|
4 | const cards = [
|
5 | {
|
6 | name: 'Bill Joe',
|
7 | dateBack: new Date('02/02/2020, 11:59:00 PM'),
|
8 | feedbacklink: 'https://corgiorgy.com/'
|
9 | },
|
10 | {
|
11 | name: 'Jane Doe',
|
12 | dateBack: new Date('02/02/2020, 11:59:00 PM'),
|
13 | feedbacklink: 'https://corgiorgy.com/'
|
14 | },
|
15 | {
|
16 | name: 'Kangaroo Koala',
|
17 | dateBack: new Date('02/02/2020, 11:59:00 PM'),
|
18 | feedbacklink: 'https://corgiorgy.com/'
|
19 | }
|
20 | ];
|
21 | storiesOf('Feedback Action Cards', module).add('Examples', () => (
|
22 | <div className="storycontainer">
|
23 | <div className="story-module" style={{ marginTop: '50px' }}>
|
24 | {cards.map(card => {
|
25 | return (
|
26 | <div>
|
27 | <FeedbackActionCard card={card} />
|
28 | </div>
|
29 | );
|
30 | })}
|
31 | </div>
|
32 | </div>
|
33 | ));
|