Fix issue #4042: Add paragraph in admin emoji page to link to documentation (#4235)

* Fix issue #4042: Add paragraph in admin emoji page to link to documentation

* Address some code formatting issues

* Fixed html style issue
This commit is contained in:
Michael
2025-03-09 17:22:29 -07:00
committed by GitHub
parent e73e3e1f55
commit c981acbc5d
26 changed files with 84 additions and 25 deletions
+9
View File
@@ -2,6 +2,7 @@ import { Avatar, Button, Card, Col, Row, Tooltip, Typography } from 'antd';
import Upload, { RcFile } from 'antd/lib/upload';
import React, { ReactElement, useEffect, useState } from 'react';
import dynamic from 'next/dynamic';
import { useTranslation } from 'next-export-i18n';
import FormStatusIndicator from '../../../components/admin/FormStatusIndicator';
import { DELETE_EMOJI, fetchData, UPLOAD_EMOJI } from '../../../utils/apis';
import { ACCEPTED_IMAGE_TYPES, getBase64 } from '../../../utils/images';
@@ -35,6 +36,7 @@ const Emoji = () => {
const [loading, setLoading] = useState(false);
const [submitStatus, setSubmitStatus] = useState(null);
const [uploadFile, setUploadFile] = useState<RcFile>(null);
const { t } = useTranslation();
let resetTimer = null;
const resetStates = () => {
@@ -139,6 +141,13 @@ const Emoji = () => {
filename without extension will be used as emoji name. Additionally, emoji names are
case-insensitive. For best results, ensure all emoji have unique names.
</Paragraph>
<Paragraph>
{t('Want to upload custom emojis in bulk? Check out our')}{' '}
<a href="https://owncast.online/docs/chat/emoji" rel="noopener noreferrer" target="_blank">
{t('Emoji guide')}
</a>
.
</Paragraph>
<br />
<Upload
name="emoji"