diff --git a/pages/components/Profile/Contact.js b/pages/components/Profile/Contact.js index f9ace53..5103af2 100644 --- a/pages/components/Profile/Contact.js +++ b/pages/components/Profile/Contact.js @@ -8,7 +8,7 @@ const Contact = (props) => { const { icon, dest, caption } = props return (
- +

{caption}

diff --git a/pages/hcunews.js b/pages/hcunews.js index 5d6b5ab..d7bcd54 100644 --- a/pages/hcunews.js +++ b/pages/hcunews.js @@ -17,20 +17,24 @@ export default function HcuNews() { const { t } = useTranslation(); const [query] = useLanguageQuery(); - return( - -
-

{t('hcunews')}

- {lang === 'ja' ? ( - - {ja} - - ) : ( - - {en} - - )} -
-
- ) - } \ No newline at end of file + if (!query) { + return

Loading...

+ } else { + return ( + +
+

{t('hcunews')}

+ {query["lang"] === 'ja' ? ( + + {ja} + + ) : ( + + {en} + + )} +
+
+ ) + } +} \ No newline at end of file diff --git a/pages/tos.js b/pages/tos.js index dd76e6e..7a1be9b 100644 --- a/pages/tos.js +++ b/pages/tos.js @@ -17,20 +17,24 @@ import en from '../docs/tos/en.md' export default function Tos(props) { const { t } = useTranslation(); const [query] = useLanguageQuery(); - - return( - -
- {lang === 'ja' ? ( - - {ja} - - ) : ( - - {en} - - )} -
-
- ) - } \ No newline at end of file + + if (!query) { + return

Loading...

+ } else { + return ( + +
+ {query["lang"] === 'ja' ? ( + + {ja} + + ) : ( + + {en} + + )} +
+
+ ) + } + } \ No newline at end of file