2022-04-28 09:19:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-09-07 10:00:28 +03:00
|
|
|
import { FediAuthModal } from './FediAuthModal';
|
2022-09-03 21:38:52 +03:00
|
|
|
import FediAuthModalMock from '../../../stories/assets/mocks/fediauth-modal.png';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Modals/FediAuth',
|
|
|
|
component: FediAuthModal,
|
2022-05-13 06:52:19 +03:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: FediAuthModalMock,
|
|
|
|
scale: 0.5,
|
|
|
|
},
|
|
|
|
},
|
2022-04-28 09:19:20 +03:00
|
|
|
} as ComponentMeta<typeof FediAuthModal>;
|
|
|
|
|
2022-09-09 07:44:52 +03:00
|
|
|
const Template: ComponentStory<typeof FediAuthModal> = args => <FediAuthModal {...args} />;
|
|
|
|
|
|
|
|
export const NotYetAuthenticated = Template.bind({});
|
|
|
|
NotYetAuthenticated.args = {
|
|
|
|
displayName: 'fake-user',
|
|
|
|
authenticated: false,
|
|
|
|
accessToken: '',
|
|
|
|
};
|
2022-04-28 09:19:20 +03:00
|
|
|
|
2022-09-09 07:44:52 +03:00
|
|
|
export const Authenticated = Template.bind({});
|
|
|
|
Authenticated.args = {
|
|
|
|
displayName: 'fake-user',
|
|
|
|
authenticated: true,
|
|
|
|
accessToken: '',
|
|
|
|
};
|