feat: update appearance selector (#645)

This commit is contained in:
boojack
2022-12-01 20:57:19 +08:00
committed by GitHub
parent eaebc6dcef
commit 7c6d7226f5
23 changed files with 157 additions and 118 deletions

View File

@ -6,12 +6,12 @@ import { useAppSelector } from "./store";
import Loading from "./pages/Loading";
import router from "./router";
import * as storage from "./helpers/storage";
import useApperance from "./hooks/useApperance";
import useAppearance from "./hooks/useAppearance";
function App() {
const { i18n } = useTranslation();
const { locale, systemStatus } = useAppSelector((state) => state.global);
useApperance();
useAppearance();
useEffect(() => {
locationService.updateStateWithLocation();