Skip to content

Commit

Permalink
adding cashapppay story (#2963)
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeiroguilherme authored Nov 18, 2024
1 parent 8c169e2 commit f468e3f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/lib/storybook/stories/wallets/CashAppPay.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { MetaConfiguration, StoryConfiguration } from '../types';
import { ComponentContainer } from '../ComponentContainer';
import { CashAppPayConfiguration } from '../../../src/components/CashAppPay/types';
import CashAppPay from '../../../src/components/CashAppPay/CashAppPay';
import { Checkout } from '../Checkout';

type CashAppPayStory = StoryConfiguration<CashAppPayConfiguration>;

const meta: MetaConfiguration<CashAppPayConfiguration> = {
title: 'Wallets/CashAppPay'
};

export const Default: CashAppPayStory = {
render: ({ componentConfiguration, ...checkoutConfig }) => (
<Checkout checkoutConfig={checkoutConfig}>
{checkout => <ComponentContainer element={new CashAppPay(checkout, componentConfiguration)} />}
</Checkout>
),
args: {
countryCode: 'US'
}
};

export default meta;

0 comments on commit f468e3f

Please sign in to comment.