Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Wire up follower empty state. Closes #1913
Gabe Kangas3e1ba399b015
diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsxindex d427e1ac2a..e1fb63f13d 100644--- a/web/components/ui/Content/Content.tsx+++ b/web/components/ui/Content/Content.tsx@@ -59,9 +59,19 @@ const ChatContainer = dynamic(() =>import('../../chat/ChatContainer/ChatContainer').then(mod => mod.ChatContainer),);-const DesktopContent = ({ name, streamTitle, summary, tags, socialHandles, extraPageContent }) => {+const DesktopContent = ({+ name,+ streamTitle,+ summary,+ tags,+ socialHandles,+ extraPageContent,+ setShowFollowModal,+}) => {const aboutTabContent = <CustomPageContent content={extraPageContent} />;- const followersTabContent = <FollowerCollection name={name} />;+ const followersTabContent = (+ <FollowerCollection name={name} onFollowButtonClick={() => setShowFollowModal(true)} />+ );const items = [{ label: 'About', key: '2', children: aboutTabContent },@@ -154,7 +164,9 @@ const MobileContent = ({<CustomPageContent content={extraPageContent} /></>);- const followersTabContent = <FollowerCollection name={name} />;+ const followersTabContent = (+ <FollowerCollection name={name} onFollowButtonClick={() => setShowFollowModal(true)} />+ );const items = [showChat && { label: 'Chat', key: '0', children: chatContent },@@ -367,6 +379,7 @@ export const Content: FC = () => {tags={tags}socialHandles={socialHandles}extraPageContent={extraPageContent}+ setShowFollowModal={setShowFollowModal}/>)}</div>diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsxindex bdf1a4a2b8..f67cd13b07 100644--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.stories.tsx@@ -11,7 +11,13 @@ export default {const Template: ComponentStory<typeof FollowerCollection> = (args: object) => (<RecoilRoot>- <FollowerCollection name="Example stream name" {...args} />+ <FollowerCollection+ onFollowButtonClick={function (): void {+ throw new Error('Function not implemented.');+ }}+ name="Example stream name"+ {...args}+ /></RecoilRoot>);diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsxindex 10ffd62029..dd1e8c4853 100644--- a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx+++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx@@ -7,9 +7,10 @@ import { FollowButton } from '../../../action-buttons/FollowButton';export type FollowerCollectionProps = {name: string;+ onFollowButtonClick: () => void;};-export const FollowerCollection: FC<FollowerCollectionProps> = ({ name }) => {+export const FollowerCollection: FC<FollowerCollectionProps> = ({ name, onFollowButtonClick }) => {const ENDPOINT = '/api/followers';const ITEMS_PER_PAGE = 24;@@ -58,7 +59,7 @@ export const FollowerCollection: FC<FollowerCollectionProps> = ({ name }) => {from the stream, share it with others, and and show your appreciation when it goes live, allfrom your own Fediverse account.</p>- <FollowButton />+ <FollowButton onClick={onFollowButtonClick} /></div>);