feat(ui): antd theme

This commit is contained in:
Fu Diwei
2024-12-09 17:04:02 +08:00
parent fdfe54b6da
commit 789c120fc9
6 changed files with 63 additions and 108 deletions

3
ui/src/hooks/index.ts Normal file
View File

@@ -0,0 +1,3 @@
import useTheme from "./use-theme";
export { useTheme };

View File

@@ -0,0 +1,6 @@
import { useTheme } from "ahooks";
export default function () {
const { theme, themeMode, setThemeMode } = useTheme({ localStorageKey: "certimate-ui-theme" });
return { theme, themeMode, setThemeMode };
}