Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

feat: use susppened page add contact_email

shuaib24fc1ff22ff
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index dc50a9b1..15c164e8 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -337,6 +337,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
diff --git a/ui/src/components/Header/index.scss b/ui/src/components/Header/index.scss
index 5ffa5818..07d719c5 100644
--- a/ui/src/components/Header/index.scss
+++ b/ui/src/components/Header/index.scss
@@ -57,9 +57,6 @@
@media (max-width: 992.9px) {
#header {
- .logo {
- max-width: 93px;
- }
.nav-grow {
flex-grow: 1!important;
}
diff --git a/ui/src/pages/Users/Suspended/index.tsx b/ui/src/pages/Users/Suspended/index.tsx
index 20ed5f9b..b5d6c849 100644
--- a/ui/src/pages/Users/Suspended/index.tsx
+++ b/ui/src/pages/Users/Suspended/index.tsx
@@ -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>
);
};