#
luxiaotao1123
2024-11-07 1e967e17c4d9daf0bd4145715b856f0b74e05ae6
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);