import React, { createRef } from 'react'; import { action } from '@storybook/addon-actions'; import Card from 'shared/components/Card'; import CardComposer from 'shared/components/CardComposer'; import LabelColors from 'shared/constants/labelColors'; import List, { ListCards } from '.'; export default { component: List, title: 'List', parameters: { backgrounds: [ { name: 'white', value: '#ffffff', default: true }, { name: 'gray', value: '#f8f8f8' }, ], }, }; const labelData = [ { labelId: 'development', name: 'Development', color: LabelColors.BLUE, active: false, }, { labelId: 'general', name: 'General', color: LabelColors.PINK, active: false, }, ]; const createCard = () => { const $ref = createRef(); return ( ); }; export const Default = () => { return ( { console.log('close!'); }} onCreateCard={name => { console.log(name); }} isOpen={false} /> ); }; export const WithCardComposer = () => { return ( { console.log('close!'); }} onCreateCard={name => { console.log(name); }} isOpen /> ); }; export const WithCard = () => { const $cardRef: any = createRef(); return ( { console.log('close!'); }} onCreateCard={name => { console.log(name); }} isOpen={false} /> ); }; export const WithCardAndComposer = () => { const $cardRef: any = createRef(); return ( { console.log('close!'); }} onCreateCard={name => { console.log(name); }} isOpen /> ); };