Skip to content

Commit

Permalink
add error story
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverineks committed Nov 21, 2022
1 parent 61ea71c commit b865e15
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Catalyst/VotingRegistration.stories.tsx
Expand Up @@ -135,6 +135,22 @@ storiesOf('Catalyst', module)
</Providers>
</NavigationContainer>
))
.add('Voting Registration, error', () => (
<NavigationContainer independent>
<Providers
wallet={{
...mockWallet,
getStakingInfo: mockGetStakingInfo.success.registered,
encryptedStorage: mockEncryptedStorage,
createVotingRegTx: mockCreateVotingRegTx.error,
signTx: mockSignTx.success,
submitTransaction: mockSubmitTransaction.success,
}}
>
<VotingRegistration />
</Providers>
</NavigationContainer>
))

const Providers = ({wallet, children}: {wallet: YoroiWallet; children: React.ReactNode}) => {
return (
Expand Down

0 comments on commit b865e15

Please sign in to comment.