Fix for fallback update dialog

This commit is contained in:
Josh Perez 2020-02-20 16:09:50 -08:00 committed by Scott Nonnenberg
parent f379c72aba
commit 018dc34e47
5 changed files with 70 additions and 34 deletions

View file

@ -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}
/>
);