11import React from "react" ;
22import Link from "@docusaurus/Link" ;
3- import Translate from "@docusaurus/Translate" ;
43import useDocusaurusContext from "@docusaurus/useDocusaurusContext" ;
54import styles from "./styles.module.scss" ;
65import Logo from "@theme/Logo" ;
76import { BRAND , REGION } from "../../constants/env" ;
87import { getNavLinks , getLicenceLinks } from "./_config" ;
9- import DiscordLogo from "./discord-mark-white.svg" ;
10- import Arrow from "./arrow.svg" ;
11- import TdsFooter from "./TdsFooter" ;
12- import useBaseUrl from "@docusaurus/useBaseUrl" ;
138
149function getCopyrightNotice ( brand : string ) : string {
1510 const year = new Date ( ) . getFullYear ( ) ;
@@ -23,48 +18,15 @@ function Footer() {
2318 i18n : { currentLocale } ,
2419 } = useDocusaurusContext ( ) ;
2520
26- return BRAND === 'tds' && REGION === 'cn' ? < TdsFooter /> : (
21+ return (
2722 < footer className = { styles . footer } >
2823 < div className = { styles . stage } >
2924 < div >
3025 < section >
31- { REGION === 'global' ? < section className = { styles . logo } >
26+ < section className = { styles . logo } >
3227 { /* @ts -ignore */ }
33- {
34- ( currentLocale === "en" ) ?
35- < img src = { useBaseUrl ( "/img/logo_en_footer.png" ) } width = "200" height = "30" > </ img >
36- :
37- < img src = { useBaseUrl ( "/img/logo_zh_footer.png" ) } width = "180" height = "30" > </ img >
38- }
39-
40- </ section > :< section className = { styles . logo } >
41- { /* @ts -ignore */ }
42- < Logo noLabel reversed = { BRAND === "leancloud" } />
43- </ section > }
44-
45-
46- { BRAND === "tds" ? < section className = { styles . discord } >
47- < a
48- href = "https://discord.com/invite/xt3f3XpuQa"
49- target = "_blank"
50- rel = "noreferrer nofollow noopener"
51- >
52- < div >
53- < span >
54- < DiscordLogo />
55- < span >
56- < Translate
57- id = "tds-footer-来-Discord-和我们交流"
58- description = "from Footer"
59- >
60- 来 Discord 和我们交流
61- </ Translate >
62- </ span >
63- </ span >
64- < Arrow />
65- </ div >
66- </ a >
67- </ section > : < > </ > }
28+ < Logo noLink noLabel reversed = { BRAND === "leancloud" } />
29+ </ section >
6830 </ section >
6931
7032 < section >
@@ -93,38 +55,6 @@ function Footer() {
9355 </ section >
9456
9557 < section className = { styles . info } >
96- { BRAND === "tds" &&
97- ( REGION === "cn" ? (
98- < >
99- < div >
100- < Translate
101- id = "tds-footer-易玩(上海)网络科技有限公司"
102- description = "from Footer"
103- >
104- 易玩(上海)网络科技有限公司
105- </ Translate >
106- </ div >
107- < div >
108- < Translate
109- id = "tds-footer-公司地址:上海市静安区灵石路 718 号 B1 北楼"
110- description = "from Footer"
111- >
112- 公司地址:上海市静安区灵石路 718 号 B1 北楼
113- </ Translate >
114- </ div >
115- < div >
116- < Translate
117- id = "tds-footer-注册地址:上海市闵行区紫星路 588 号 2 幢 2122 室"
118- description = "from Footer"
119- >
120- 注册地址:上海市闵行区紫星路 588 号 2 幢 2122 室
121- </ Translate >
122- </ div >
123- </ >
124- ) : (
125- < div > TapTap Pte. Ltd.</ div >
126- ) ) }
127-
12858 < div > { getCopyrightNotice ( BRAND ) } </ div >
12959 </ section >
13060 </ section >
0 commit comments