feat: use susppened page add contact_email

This commit is contained in:
shuai 2023-04-23 15:16:47 +08:00 committed by LinkinStars
parent 3b5c3fc3ff
commit 0292cbb92b
3 changed files with 7 additions and 3 deletions

View File

@ -399,6 +399,7 @@ ui:
until_time: "Your account was suspended until {{ time }}."
forever: This user was suspended forever.
end: You don't meet a community guideline.
contact_us: Contact us
editor:
blockquote:
text: Blockquote

View File

@ -57,9 +57,6 @@
@media (max-width: 992.9px) {
#header {
.logo {
max-width: 93px;
}
.nav-grow {
flex-grow: 1!important;
}

View File

@ -1,8 +1,11 @@
import { useTranslation } from 'react-i18next';
import { Button } from 'react-bootstrap';
import { siteInfoStore } from '@/stores';
import { usePageTags } from '@/hooks';
const Suspended = () => {
const { contact_email = '' } = siteInfoStore((state) => state.siteInfo);
const { t } = useTranslation('translation', { keyPrefix: 'suspended' });
usePageTags({
title: t('account_suspended', { keyPrefix: 'page_title' }),
@ -16,6 +19,9 @@ const Suspended = () => {
<br />
{t('end')}
</p>
<Button href={`mailto:${contact_email}`} variant="link">
{t('contact_us')}
</Button>
</div>
);
};