introduction and about cache

This commit is contained in:
josc146
2023-05-20 16:33:32 +08:00
parent ca33d75f19
commit 8c79f206e6
6 changed files with 41 additions and 22 deletions

View File

@@ -5,6 +5,8 @@ import MarkdownRender from '../components/MarkdownRender';
import {observer} from 'mobx-react-lite';
import commonStore from '../stores/commonStore';
export type AboutContent = { [lang: string]: string }
export const About: FC = observer(() => {
const {t} = useTranslation();
const lang: string = commonStore.settings.language;

View File

@@ -17,6 +17,8 @@ import {ConfigSelector} from '../components/ConfigSelector';
import MarkdownRender from '../components/MarkdownRender';
import commonStore from '../stores/commonStore';
export type IntroductionContent = { [lang: string]: string }
type NavCard = {
label: string;
desc: string;

View File

@@ -14,7 +14,7 @@ export const Languages = {
export type Language = keyof typeof Languages;
export type Settings = {
export type SettingsType = {
language: Language,
darkMode: boolean
autoUpdatesCheck: boolean