mirror of
https://github.com/owncast/owncast.git
synced 2024-12-20 00:11:27 +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
39 lines
1 KiB
TypeScript
39 lines
1 KiB
TypeScript
import { StoryFn, Meta } from '@storybook/react';
|
|
import { FollowModal } from './FollowModal';
|
|
import FollowModalMock from '../../../stories/assets/mocks/follow-modal.png';
|
|
|
|
const Example = () => (
|
|
<div>
|
|
<FollowModal handleClose={null} account="@fake@server.name" name="Fake Owncast Server" />
|
|
</div>
|
|
);
|
|
|
|
const meta = {
|
|
title: 'owncast/Modals/Follow',
|
|
component: FollowModal,
|
|
parameters: {
|
|
design: {
|
|
type: 'image',
|
|
url: FollowModalMock,
|
|
scale: 0.5,
|
|
},
|
|
docs: {
|
|
description: {
|
|
component: `The Follow modal allows an end user to type in their Fediverse account information to follow this Owncast instance. It must:
|
|
|
|
- Validate the input to make sure it's a valid looking account.
|
|
- Handle errors that come back from the server.
|
|
- Perform the redirect to the remote server when the backend response is received.
|
|
`,
|
|
},
|
|
},
|
|
},
|
|
} satisfies Meta<typeof FollowModal>;
|
|
|
|
export default meta;
|
|
|
|
const Template: StoryFn<typeof FollowModal> = () => <Example />;
|
|
|
|
export const Basic = {
|
|
render: Template,
|
|
};
|