2022-04-28 08:19:20 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-08-21 01:13:31 +02:00
|
|
|
import { RecoilRoot } from 'recoil';
|
2022-09-03 20:38:52 +02:00
|
|
|
import AuthModal from './AuthModal';
|
2022-04-28 08:19:20 +02: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 01:13:31 +02:00
|
|
|
const Template: ComponentStory<typeof AuthModal> = args => (
|
|
|
|
<RecoilRoot>
|
|
|
|
<Example />
|
|
|
|
</RecoilRoot>
|
|
|
|
);
|
2022-04-28 08:19:20 +02:00
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
export const Basic = Template.bind({});
|