* 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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user