diff --git a/public/footer/en.html b/public/footer/en.html new file mode 100644 index 0000000..31cd53c --- /dev/null +++ b/public/footer/en.html @@ -0,0 +1,1449 @@ + + + + + + + + + +
+ +
+
+ +
+ +
+ +
+ +
+ +
+ + + + + + + + + + +
+ a member of + SatoKey Group +
+
+ +
+ +
+ +
+ + + + + + + +
+ + + + + Since 2019 to Now | OneKey Limited All Rights + Reserved +
+
+
+ +
+ +
+ +
+ Products +
+ OneKey ProOneKey Classic 1SOneKey TouchOneKey LiteOneKey MiniOneKey ClassicView All Products +
+
+ + + +
+ Developer + +
+ + +
+ Support + +
+ +
+ +
+ +
+ + + +
+ Since 2019 to Now | OneKey Limited All Rights + Reserved +
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/public/footer/zh.html b/public/footer/zh.html new file mode 100644 index 0000000..f65608c --- /dev/null +++ b/public/footer/zh.html @@ -0,0 +1,1449 @@ + + + + + + + + +
+ +
+
+ +
+ +
+ +
+ +
+ +
+ + + + + + + + + + +
+ SatoKey Group + 成员之一 +
+
+ +
+ +
+ +
+ + + + + + + +
+ + + + + 2019年至今|OneKey Limited 版权所有 +
+
+
+ +
+ +
+ +
+ 产品 +
+ OneKey ProOneKey Classic 1SOneKey TouchOneKey LiteOneKey MiniOneKey Classic查看所有产品 +
+
+ + + +
+ 开发者 + +
+ + +
+ 技术支持 + +
+ +
+ +
+ +
+ + + +
+ 2019年至今|OneKey Limited 版权所有 +
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 858d417..7913191 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -5,21 +5,17 @@ import { ILocale } from '../../types'; const LOCALE_MAPPING: { [TKey in ILocale]: string; } = { - 'en-US': '', - 'zh-CN': '/zh_CN', + 'en-US': 'en', + 'zh-CN': 'zh', }; -const BASE_URL = 'https://onekey.so'; - export const Footer: FunctionComponent = () => { const intl = useIntl(); const containerRef = useRef(null); useEffect(() => { - fetch( - `${BASE_URL}${LOCALE_MAPPING[intl.locale as ILocale]}/internal/footer/` - ) + fetch(`/footer/${LOCALE_MAPPING[intl.locale as ILocale]}.html`) .then((response) => response.text()) .then((data) => { const element = containerRef.current;