Skip to content

Commit

Permalink
chore: misc update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Feb 14, 2023
1 parent 009faa7 commit 9015151
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions app/components/wallet-summary/wallet-summary.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,28 @@ import { storiesOf } from "@storybook/react-native"
import { Story, StoryScreen, UseCase } from "../../../.storybook/views"
import { WalletSummary } from "./wallet-summary"
import { WalletType } from "@app/utils/enum"
import { MockedProvider } from "@apollo/client/testing"

declare let module

storiesOf("Wallet Summary", module)
.addDecorator((fn) => <StoryScreen>{fn()}</StoryScreen>)
.addDecorator((fn) => <MockedProvider><StoryScreen>{fn()}</StoryScreen></MockedProvider>)
.add("Style Presets", () => (
<Story>
<UseCase text="BTC" usage="The default.">
<WalletSummary
amountType="SEND"
walletType={WalletType.BTC}
usdBalanceInDollars={129.2}
btcBalanceInSats={2000}
/>
</UseCase>
<UseCase text="USD" usage="The default.">
<WalletSummary
amountType="SEND"
walletType={WalletType.USD}
usdBalanceInDollars={129.2}
/>
</UseCase>
<UseCase text="BTC" usage="The default.">
<WalletSummary
amountType="SEND"
walletType={WalletType.BTC}
usdBalanceInDollars={129.2}
btcBalanceInSats={2000}
/>
</UseCase>
<UseCase text="USD" usage="The default.">
<WalletSummary
amountType="SEND"
walletType={WalletType.USD}
usdBalanceInDollars={129.2}
/>
</UseCase>
</Story>
))

0 comments on commit 9015151

Please sign in to comment.