1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2024-12-21 08:49:16 +03:00
owncast/web/components/modals/IndieAuthModal/IndieAuthModal.stories.tsx
Gabe Kangas e50b23d081
Cleanup unused Javascript ()
* chore(js): be stricter about dead code warnings

* chore(js): remove dead code and unused exports

* rebase

* chore: remove unused files

* chore(deps): remove unused prop-types dep

* chore(js): remove unused function

* chore(deps): remove + check unused deps

* chore(js): remove unused exports. Closes 
2023-05-20 21:15:25 -07:00

28 lines
819 B
TypeScript

import React from 'react';
import { ComponentStory, ComponentMeta } 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>
);
export default {
title: 'owncast/Modals/IndieAuth',
component: IndieAuthModal,
parameters: {
design: {
type: 'image',
url: Mock,
scale: 0.5,
},
},
} as ComponentMeta<typeof IndieAuthModal>;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const Template: ComponentStory<typeof IndieAuthModal> = () => <Example />;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const Basic = Template.bind({});