Migrated Storybook notation from CSF2 to CSF3 (#3412)
* 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
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import React from 'react';
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import { Meta } from '@storybook/react';
|
||||
import { FediAuthModal } from './FediAuthModal';
|
||||
import FediAuthModalMock from '../../../stories/assets/mocks/fediauth-modal.png';
|
||||
|
||||
export default {
|
||||
const meta = {
|
||||
title: 'owncast/Modals/FediAuth',
|
||||
component: FediAuthModal,
|
||||
parameters: {
|
||||
@@ -13,20 +12,22 @@ export default {
|
||||
scale: 0.5,
|
||||
},
|
||||
},
|
||||
} as ComponentMeta<typeof FediAuthModal>;
|
||||
} satisfies Meta<typeof FediAuthModal>;
|
||||
|
||||
const Template: ComponentStory<typeof FediAuthModal> = args => <FediAuthModal {...args} />;
|
||||
export default meta;
|
||||
|
||||
export const NotYetAuthenticated = Template.bind({});
|
||||
NotYetAuthenticated.args = {
|
||||
displayName: 'fake-user',
|
||||
authenticated: false,
|
||||
accessToken: '',
|
||||
export const NotYetAuthenticated = {
|
||||
args: {
|
||||
displayName: 'fake-user',
|
||||
authenticated: false,
|
||||
accessToken: '',
|
||||
},
|
||||
};
|
||||
|
||||
export const Authenticated = Template.bind({});
|
||||
Authenticated.args = {
|
||||
displayName: 'fake-user',
|
||||
authenticated: true,
|
||||
accessToken: '',
|
||||
export const Authenticated = {
|
||||
args: {
|
||||
displayName: 'fake-user',
|
||||
authenticated: true,
|
||||
accessToken: '',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user