2022-04-28 09:19:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-08-21 02:13:31 +03:00
|
|
|
import { RecoilRoot } from 'recoil';
|
|
|
|
import AuthModal from '../components/modals/AuthModal/AuthModal';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
const Example = () => (
|
|
|
|
<div>
|
|
|
|
<AuthModal />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Modals/Auth',
|
|
|
|
component: AuthModal,
|
|
|
|
parameters: {},
|
|
|
|
} as ComponentMeta<typeof AuthModal>;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
2022-08-21 02:13:31 +03:00
|
|
|
const Template: ComponentStory<typeof AuthModal> = args => (
|
|
|
|
<RecoilRoot>
|
|
|
|
<Example />
|
|
|
|
</RecoilRoot>
|
|
|
|
);
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
export const Basic = Template.bind({});
|