From 9c747f6b0f35670e26d9b113e585c65c50154199 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 7 Mar 2022 00:08:57 -0800 Subject: [PATCH] Show notice on admin home encouraging people to enable social federation features. (#447) * Show notice on admin home encouraging enabling social. Closes https://github.com/owncast/owncast/issues/1653 * Do not import unused icon --- web/components/offline-notice.tsx | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/web/components/offline-notice.tsx b/web/components/offline-notice.tsx index fa55388bc..5d872fe14 100644 --- a/web/components/offline-notice.tsx +++ b/web/components/offline-notice.tsx @@ -1,10 +1,4 @@ -import { - BookTwoTone, - MessageTwoTone, - PlaySquareTwoTone, - ProfileTwoTone, - QuestionCircleTwoTone, -} from '@ant-design/icons'; +import { BookTwoTone, MessageTwoTone, PlaySquareTwoTone, ProfileTwoTone } from '@ant-design/icons'; import { Card, Col, Row, Typography } from 'antd'; import Link from 'next/link'; import { useContext } from 'react'; @@ -104,16 +98,19 @@ export default function Offline({ logs = [], config }: OfflineProps) { }); } - data.push({ - icon: , - title: 'Not sure what to do next?', - content: ( -
- If you're having issues or would like to know how to customize and configure your - Owncast server visit the help page. -
- ), - }); + if (!config?.federation?.enabled) { + data.push({ + icon: fediverse, + title: 'Add your Owncast instance to the Fediverse', + content: ( +
+ Enable Owncast social features to have your + instance join the Fediverse, allowing people to follow, share and engage with your live + stream. +
+ ), + }); + } return ( <>