1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/app/incoming-trasaction-toggle/incoming-transaction-toggle.stories.tsx
Danica Shen 00d155ce2f
feat(878): implement network txn toggle and new style (#20363)
* feat(878): implement new incoming transaction toggle networks for setting and onboarding

* Update state snapshots

* feat(878): change gaps, migration types based on comment

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-08-24 11:27:42 +01:00

27 lines
784 B
TypeScript

import { StoryFn } from '@storybook/react';
import React from 'react';
import IncomingTransactionToggle from './incoming-transaction-toggle';
import { ALL_NETWORKS_DATA, INCOMING_DATA } from './mock-data';
const IncomingTransactionToggleStory = {
title: 'Components/App/IncomingTransactionToggle',
component: IncomingTransactionToggle,
argTypes: {},
};
export const DefaultStory: StoryFn<typeof IncomingTransactionToggle> = () => {
return (
<IncomingTransactionToggle
setIncomingTransactionsPreferences={(chainId, value) => {
console.log(chainId, value);
}}
allNetworks={ALL_NETWORKS_DATA}
incomingTransactionsPreferences={INCOMING_DATA}
/>
);
};
DefaultStory.storyName = 'Default';
export default IncomingTransactionToggleStory;