mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 23:32:51 +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
33 lines
684 B
TypeScript
33 lines
684 B
TypeScript
import { Meta } from '@storybook/react';
|
|
import { FediAuthModal } from './FediAuthModal';
|
|
import FediAuthModalMock from '../../../stories/assets/mocks/fediauth-modal.png';
|
|
|
|
const meta = {
|
|
title: 'owncast/Modals/FediAuth',
|
|
component: FediAuthModal,
|
|
parameters: {
|
|
design: {
|
|
type: 'image',
|
|
url: FediAuthModalMock,
|
|
scale: 0.5,
|
|
},
|
|
},
|
|
} satisfies Meta<typeof FediAuthModal>;
|
|
|
|
export default meta;
|
|
|
|
export const NotYetAuthenticated = {
|
|
args: {
|
|
displayName: 'fake-user',
|
|
authenticated: false,
|
|
accessToken: '',
|
|
},
|
|
};
|
|
|
|
export const Authenticated = {
|
|
args: {
|
|
displayName: 'fake-user',
|
|
authenticated: true,
|
|
accessToken: '',
|
|
},
|
|
};
|