#
luxiaotao1123
2024-09-13 2b152fc6bf1e6a7ab799f8ad882a19ec763bc1a6
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);