Skip to content

Commit

Permalink
chore: adding add network modal storybook file
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewrmarshall committed Sep 9, 2024
1 parent 4a4b938 commit 53c32b7
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import type { Meta, StoryObj } from '@storybook/react';
import AddNetworkModal from './index';

const meta: Meta<typeof AddNetworkModal> = {
title: 'Pages/OnboardingFlow/AddNetworkModal',
component: AddNetworkModal,
argTypes: {
showHeader: { control: 'boolean' },
addNewNetwork: { control: 'boolean' },
onEditNetwork: { action: 'onEditNetwork' },
networkToEdit: { control: 'object' },
onRpcUrlAdd: { action: 'onRpcUrlAdd' },
prevActionMode: { control: 'text' },
networkFormInformation: { control: 'object' },
setNetworkFormInformation: { action: 'setNetworkFormInformation' },
},
args: {
showHeader: false,
addNewNetwork: true,
onEditNetwork: undefined,
networkToEdit: undefined,
prevActionMode: undefined,
networkFormInformation: {},
setNetworkFormInformation: () => null,
onRpcUrlAdd: () => {},
},
};

export default meta;
type Story = StoryObj<typeof AddNetworkModal>;

export const Default: Story = {
args: {},
};

export const ShowHeader: Story = {
args: {
showHeader: true,
},
};

0 comments on commit 53c32b7

Please sign in to comment.