Skip to content

Commit

Permalink
Fix workpad export snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
poffdeluxe committed Jan 24, 2020
1 parent fad8e85 commit 4a89637
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 68 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,13 @@ import { action } from '@storybook/addon-actions';
import React from 'react';
import { WorkpadExport } from '../workpad_export';

storiesOf('components/Export/WorkpadExport', module)
.add('enabled', () => (
<WorkpadExport
enabled={true}
onCopy={action('onCopy')}
onExport={action('onExport')}
getExportUrl={(type: string) => {
action(`getExportUrl('${type}')`);
return type;
}}
/>
))
.add('disabled', () => (
<WorkpadExport
enabled={false}
onCopy={action('onCopy')}
onExport={action('onExport')}
getExportUrl={(type: string) => {
action(`getExportUrl('${type}')`);
return type;
}}
/>
));
storiesOf('components/Export/WorkpadExport', module).add('enabled', () => (
<WorkpadExport
onCopy={action('onCopy')}
onExport={action('onExport')}
getExportUrl={(type: string) => {
action(`getExportUrl('${type}')`);
return type;
}}
/>
));

0 comments on commit 4a89637

Please sign in to comment.