Make RelinkDialog supersede the NetworkDialog

This commit is contained in:
Josh Perez 2020-04-27 18:36:49 -04:00 committed by Scott Nonnenberg
parent 1b5c36a9a8
commit 752cd75c54
5 changed files with 9 additions and 26 deletions

View file

@ -13,7 +13,6 @@ import { action } from '@storybook/addon-actions';
const i18n = setupI18n('en', enMessages);
const defaultProps = {
hasNetworkDialog: false,
i18n,
isRegistrationDone: true,
relinkDevice: action('relink-device'),
@ -21,31 +20,19 @@ const defaultProps = {
const permutations = [
{
title: 'Unlinked (online)',
title: 'Unlinked',
props: {
isRegistrationDone: false,
},
},
{
title: 'Unlinked (offline)',
props: {
hasNetworkDialog: true,
isRegistrationDone: false,
},
},
];
storiesOf('Components/RelinkDialog', module)
.add('Knobs Playground', () => {
const hasNetworkDialog = boolean('hasNetworkDialog', false);
const isRegistrationDone = boolean('isRegistrationDone', false);
return (
<RelinkDialog
{...defaultProps}
hasNetworkDialog={hasNetworkDialog}
isRegistrationDone={isRegistrationDone}
/>
<RelinkDialog {...defaultProps} isRegistrationDone={isRegistrationDone} />
);
})
.add('Iterations', () => {