userscript...

This commit is contained in:
Gabe Yuan
2023-08-06 21:12:01 +08:00
parent 063d7c9ff0
commit fef4d50977
14 changed files with 456 additions and 102 deletions

View File

@@ -5,13 +5,15 @@ import { useI18n, useI18nMd } from "../../hooks/I18n";
export default function About() {
const i18n = useI18n();
const [md, loading, error] = useI18nMd("about_md");
const [data, loading, error] = useI18nMd("about_md");
return (
<Box>
{loading ? (
<CircularProgress />
<center>
<CircularProgress />
</center>
) : (
<ReactMarkdown children={error ? i18n("about_md_local") : md} />
<ReactMarkdown children={error ? i18n("about_md_local") : data} />
)}
</Box>
);