2022-04-28 09:19:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
|
|
import IndieAuthModal from '../components/modals/IndieAuthModal';
|
2022-05-13 06:52:19 +03:00
|
|
|
import Mock from './assets/mocks/indieauth-modal.png';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
const Example = () => (
|
|
|
|
<div>
|
2022-08-21 02:13:31 +03:00
|
|
|
<IndieAuthModal authenticated displayName="fakeChatName" accessToken="fakeaccesstoken" />
|
2022-04-28 09:19:20 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Modals/IndieAuth',
|
|
|
|
component: IndieAuthModal,
|
2022-05-13 06:52:19 +03:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: Mock,
|
|
|
|
scale: 0.5,
|
|
|
|
},
|
|
|
|
},
|
2022-04-28 09:19:20 +03:00
|
|
|
} as ComponentMeta<typeof IndieAuthModal>;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
const Template: ComponentStory<typeof IndieAuthModal> = args => <Example />;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
export const Basic = Template.bind({});
|