Add Followers list and single follower component. Closes #1861
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user