Add mock to follower
This commit is contained in:
@@ -1,11 +1,22 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||||
import SingleFollower from '../components/Follower';
|
import SingleFollower from '../components/Follower';
|
||||||
|
import SingleFollowerMock from './assets/mocks/single-follower.png';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'owncast/Components/Followers/Single Follower',
|
title: 'owncast/Components/Followers/Single Follower',
|
||||||
component: SingleFollower,
|
component: SingleFollower,
|
||||||
parameters: {},
|
parameters: {
|
||||||
|
design: {
|
||||||
|
type: 'image',
|
||||||
|
url: SingleFollowerMock,
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
description: {
|
||||||
|
component: `Represents a single follower.`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
} as ComponentMeta<typeof SingleFollower>;
|
} as ComponentMeta<typeof SingleFollower>;
|
||||||
|
|
||||||
const Template: ComponentStory<typeof SingleFollower> = args => <SingleFollower {...args} />;
|
const Template: ComponentStory<typeof SingleFollower> = args => <SingleFollower {...args} />;
|
||||||
|
|||||||
Reference in New Issue
Block a user