#
luxiaotao1123
2024-09-09 67001cbd71a2f6cde26937a73db5af34db442a64
zy-acs-flow/src/themes/ThemeSwapper.jsx
@@ -2,6 +2,7 @@
import { useStore, useTranslate, ToggleThemeButton } from 'react-admin';
import { IconButton, Menu, MenuItem, Tooltip } from '@mui/material';
import ColorLensIcon from '@mui/icons-material/ColorLens';
import { DEFAULT_THEME_NAME } from '@/config/setting';
import { themes } from './themes';
@@ -15,7 +16,7 @@
        setAnchorEl(null);
    };
    const [themeName, setThemeName] = useStore('themeName', 'soft');
    const [themeName, setThemeName] = useStore('themeName', DEFAULT_THEME_NAME);
    const handleChange = (_, index) => {
        const newTheme = themes[index];
        setThemeName(newTheme.name);