Add Followers list and single follower component. Closes #1861

This commit is contained in:
Gabe Kangas
2022-07-11 18:29:58 -07:00
parent 24db1d6c6d
commit e0634abc98
8 changed files with 111 additions and 46 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import SingleFollower from '../components/Follower';
import SingleFollower from '../components/ui/Followers/Follower';
import SingleFollowerMock from './assets/mocks/single-follower.png';
export default {

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import FollowerCollection from '../components/FollowersCollection';
import FollowerCollection from '../components/ui/Followers/FollowersCollection';
export default {
title: 'owncast/Components/Followers/Followers collection',
@@ -12,6 +12,9 @@ const Template: ComponentStory<typeof FollowerCollection> = args => (
<FollowerCollection {...args} />
);
export const NoFollowers = Template.bind({});
NoFollowers.args = { followers: [] };
export const Example = Template.bind({});
Example.args = {
followers: [