chore: rename enableFoldMemo (#671)

* chore: rename `enableFoldMemo`

* chore: update
This commit is contained in:
boojack
2022-12-04 15:34:03 +08:00
committed by GitHub
parent 4767ee3293
commit 4a9314c476
6 changed files with 11 additions and 11 deletions

View File

@ -4,10 +4,10 @@ import { useTranslation } from "react-i18next";
import { RouterProvider } from "react-router-dom";
import { globalService, locationService } from "./services";
import { useAppSelector } from "./store";
import Loading from "./pages/Loading";
import router from "./router";
import * as storage from "./helpers/storage";
import { getSystemColorScheme } from "./helpers/utils";
import Loading from "./pages/Loading";
function App() {
const { i18n } = useTranslation();
@ -69,7 +69,7 @@ function App() {
const root = document.documentElement;
if (mode === "light") {
root.classList.remove("dark");
} else {
} else if (mode === "dark") {
root.classList.add("dark");
}
}, [mode]);