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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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;