Fix for fallback update dialog
This commit is contained in:
parent
f379c72aba
commit
018dc34e47
5 changed files with 70 additions and 34 deletions
|
@ -17,6 +17,9 @@ const defaultProps = {
|
|||
dismissDialog: action('dismiss-dialog'),
|
||||
hasNetworkDialog: false,
|
||||
i18n,
|
||||
didSnooze: false,
|
||||
showEventsCount: 0,
|
||||
snoozeUpdate: action('snooze-update'),
|
||||
startUpdate: action('start-update'),
|
||||
};
|
||||
|
||||
|
@ -27,6 +30,13 @@ const permutations = [
|
|||
dialogType: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Update (didSnooze=true)',
|
||||
props: {
|
||||
dialogType: 1,
|
||||
didSnooze: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Cannot Update',
|
||||
props: {
|
||||
|
@ -54,11 +64,13 @@ storiesOf('Components/UpdateDialog', module)
|
|||
1
|
||||
);
|
||||
const hasNetworkDialog = boolean('hasNetworkDialog', false);
|
||||
const didSnooze = boolean('didSnooze', false);
|
||||
|
||||
return (
|
||||
<UpdateDialog
|
||||
{...defaultProps}
|
||||
dialogType={dialogType}
|
||||
didSnooze={didSnooze}
|
||||
hasNetworkDialog={hasNetworkDialog}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue