Skip to content

Commit

Permalink
[DDW-961] Fixes and adds delete wallet dialog stories
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusHurney committed Nov 22, 2019
1 parent 3edf5f3 commit 43e17cd
Showing 1 changed file with 55 additions and 7 deletions.
62 changes: 55 additions & 7 deletions storybook/stories/wallets/settings/WalletDelete.stories.js
Expand Up @@ -14,7 +14,7 @@ storiesOf('Wallets|Settings', module)

// ====== Stories ======

.add('Delete - without funds & countdown', () => (
.add('Delete - no funds & countdown', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
Expand All @@ -30,7 +30,7 @@ storiesOf('Wallets|Settings', module)
/>
</div>
))
.add('Delete - without funds - not accepted', () => (
.add('Delete - no funds - not accepted', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
Expand All @@ -46,7 +46,7 @@ storiesOf('Wallets|Settings', module)
/>
</div>
))
.add('Delete - without funds - accepted', () => (
.add('Delete - no funds & accepted & filled incorrectly', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
Expand All @@ -62,6 +62,38 @@ storiesOf('Wallets|Settings', module)
/>
</div>
))
.add('Delete - no funds & accepted & filled correctly', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
hasWalletFunds={false}
countdownFn={() => 0}
isBackupNoticeAccepted
confirmationValue="My Wallet"
onAcceptBackupNotice={() => {}}
onContinue={() => {}}
onCancel={() => {}}
onConfirmationValueChange={() => {}}
isSubmitting={false}
/>
</div>
))
.add('Delete - no funds & accepted & filled correctly & submitting', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
hasWalletFunds={false}
countdownFn={() => 0}
isBackupNoticeAccepted
confirmationValue="My Wallet"
onAcceptBackupNotice={() => {}}
onContinue={() => {}}
onCancel={() => {}}
onConfirmationValueChange={() => {}}
isSubmitting
/>
</div>
))
.add('Delete - funds & countdown', () => (
<div>
<DeleteWalletConfirmationDialog
Expand All @@ -78,7 +110,7 @@ storiesOf('Wallets|Settings', module)
/>
</div>
))
.add('Delete - funds & accepted', () => (
.add('Delete - funds & accepted & filled incorrectly', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
Expand All @@ -89,24 +121,40 @@ storiesOf('Wallets|Settings', module)
onAcceptBackupNotice={() => {}}
onContinue={() => {}}
onCancel={() => {}}
onConfirmationValueChange={() => {}}
onConfirmationValueChange={action('onRecoveryWordChange')}
isSubmitting={false}
/>
</div>
))
.add('Delete - funds & accepted & filled', () => (
.add('Delete - funds & accepted & filled correctly', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
hasWalletFunds
countdownFn={() => 0}
isBackupNoticeAccepted
confirmationValue="babushka"
confirmationValue="My Wallet"
onAcceptBackupNotice={() => {}}
onContinue={() => {}}
onCancel={() => {}}
onConfirmationValueChange={action('onRecoveryWordChange')}
isSubmitting={false}
/>
</div>
))
.add('Delete - funds & accepted & filled correctly & submitting', () => (
<div>
<DeleteWalletConfirmationDialog
walletName="My Wallet"
hasWalletFunds
countdownFn={() => 0}
isBackupNoticeAccepted
confirmationValue="My Wallet"
onAcceptBackupNotice={() => {}}
onContinue={() => {}}
onCancel={() => {}}
onConfirmationValueChange={action('onRecoveryWordChange')}
isSubmitting
/>
</div>
));

0 comments on commit 43e17cd

Please sign in to comment.