2022-05-14 01:07:49 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-05-26 23:52:04 +03:00
|
|
|
import { RecoilRoot } from 'recoil';
|
2022-05-14 01:07:49 +03:00
|
|
|
import NameChangeModal from '../components/modals/NameChangeModal';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Modals/Name change',
|
|
|
|
component: NameChangeModal,
|
|
|
|
parameters: {},
|
|
|
|
} as ComponentMeta<typeof NameChangeModal>;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
2022-05-26 23:52:04 +03:00
|
|
|
const Template: ComponentStory<typeof NameChangeModal> = args => (
|
|
|
|
<RecoilRoot>
|
|
|
|
<NameChangeModal />
|
|
|
|
</RecoilRoot>
|
|
|
|
);
|
2022-05-14 01:07:49 +03:00
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
export const Basic = Template.bind({});
|