mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 22:31:09 +03:00
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
This commit is contained in:
parent
181a7c3431
commit
9c747f6b0f
1 changed files with 14 additions and 17 deletions
|
@ -1,10 +1,4 @@
|
||||||
import {
|
import { BookTwoTone, MessageTwoTone, PlaySquareTwoTone, ProfileTwoTone } from '@ant-design/icons';
|
||||||
BookTwoTone,
|
|
||||||
MessageTwoTone,
|
|
||||||
PlaySquareTwoTone,
|
|
||||||
ProfileTwoTone,
|
|
||||||
QuestionCircleTwoTone,
|
|
||||||
} from '@ant-design/icons';
|
|
||||||
import { Card, Col, Row, Typography } from 'antd';
|
import { Card, Col, Row, Typography } from 'antd';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { useContext } from 'react';
|
import { useContext } from 'react';
|
||||||
|
@ -104,16 +98,19 @@ export default function Offline({ logs = [], config }: OfflineProps) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
data.push({
|
if (!config?.federation?.enabled) {
|
||||||
icon: <QuestionCircleTwoTone twoToneColor="#ffd33d" />,
|
data.push({
|
||||||
title: 'Not sure what to do next?',
|
icon: <img alt="fediverse" width="20px" src="fediverse-white.png" />,
|
||||||
content: (
|
title: 'Add your Owncast instance to the Fediverse',
|
||||||
<div>
|
content: (
|
||||||
If you're having issues or would like to know how to customize and configure your
|
<div>
|
||||||
Owncast server visit <Link href="/help">the help page.</Link>
|
<Link href="/config-federation">Enable Owncast social</Link> features to have your
|
||||||
</div>
|
instance join the Fediverse, allowing people to follow, share and engage with your live
|
||||||
),
|
stream.
|
||||||
});
|
</div>
|
||||||
|
),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue