mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix for fallback update dialog
This commit is contained in:
committed by
Scott Nonnenberg
parent
f379c72aba
commit
018dc34e47
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user