mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 11:09:01 +03:00
4f078e1ee4
* Migrate web action-buttons directory to CSF3 notation * Migrate web chat directory to CSF3 notation * Migrate web common directory to CSF3 notation * Migrate web layout directory to CSF3 notation * Migrate web modals directory to CSF3 notation * Migrate web ui directory to CSF3 notation * Migrate web video directory to CSF3 notation * Migrate web stories directory to CSF3 notation
29 lines
669 B
TypeScript
29 lines
669 B
TypeScript
import { StoryFn, Meta } from '@storybook/react';
|
|
import { IndieAuthModal } from './IndieAuthModal';
|
|
import Mock from '../../../stories/assets/mocks/indieauth-modal.png';
|
|
|
|
const Example = () => (
|
|
<div>
|
|
<IndieAuthModal authenticated displayName="fakeChatName" accessToken="fakeaccesstoken" />
|
|
</div>
|
|
);
|
|
|
|
const meta = {
|
|
title: 'owncast/Modals/IndieAuth',
|
|
component: IndieAuthModal,
|
|
parameters: {
|
|
design: {
|
|
type: 'image',
|
|
url: Mock,
|
|
scale: 0.5,
|
|
},
|
|
},
|
|
} satisfies Meta<typeof IndieAuthModal>;
|
|
|
|
export default meta;
|
|
|
|
const Template: StoryFn<typeof IndieAuthModal> = () => <Example />;
|
|
|
|
export const Basic = {
|
|
render: Template,
|
|
};
|