2021-08-31 00:57:39 +02:00
|
|
|
import { action } from '@storybook/addon-actions';
|
2023-03-06 18:48:28 +01:00
|
|
|
import React from 'react';
|
2021-08-31 00:57:39 +02:00
|
|
|
import NewAccountCreateForm from './new-account.component';
|
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/CreateAccount/NewAccount',
|
2023-03-06 18:48:28 +01:00
|
|
|
component: NewAccountCreateForm,
|
2023-01-18 02:42:02 +01:00
|
|
|
argTypes: {
|
|
|
|
accounts: {
|
|
|
|
control: 'array',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
accounts: [],
|
|
|
|
},
|
2021-08-31 00:57:39 +02:00
|
|
|
};
|
2023-03-06 18:48:28 +01:00
|
|
|
|
|
|
|
export const DefaultStory = (args) => (
|
|
|
|
<NewAccountCreateForm {...args} createAccount={action('Account Created')} />
|
|
|
|
);
|
2021-12-01 20:27:57 +01:00
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|