mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-05 16:06:58 +00:00
Refactor deprecated MUI component
This commit is contained in:
parent
0f857acd8d
commit
441e4c0231
@ -16,6 +16,7 @@ import {
|
|||||||
Tab,
|
Tab,
|
||||||
ListItemButton,
|
ListItemButton,
|
||||||
useTheme,
|
useTheme,
|
||||||
|
ListItem,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { Sketch } from '@uiw/react-color';
|
import { Sketch } from '@uiw/react-color';
|
||||||
import DeleteIcon from '@mui/icons-material/Delete';
|
import DeleteIcon from '@mui/icons-material/Delete';
|
||||||
@ -269,24 +270,28 @@ export default function ThemeManager() {
|
|||||||
<ListItemText
|
<ListItemText
|
||||||
primary={`${theme?.name || `Theme ${index + 1}`} ${theme?.id === currentThemeId ? '(Current)' : ''}`}
|
primary={`${theme?.name || `Theme ${index + 1}`} ${theme?.id === currentThemeId ? '(Current)' : ''}`}
|
||||||
/>
|
/>
|
||||||
<ListItemSecondaryAction>
|
<ListItem
|
||||||
{theme.id !== 'default' && (
|
secondaryAction={
|
||||||
<>
|
<Box sx={{ display: 'flex', gap: 1 }}>
|
||||||
<IconButton onClick={() => exportTheme(theme)}>
|
{theme.id !== 'default' && (
|
||||||
<FileDownloadIcon />
|
<>
|
||||||
|
<IconButton onClick={() => exportTheme(theme)}>
|
||||||
|
<FileDownloadIcon />
|
||||||
|
</IconButton>
|
||||||
|
<IconButton onClick={() => handleEditTheme(theme.id)}>
|
||||||
|
<EditIcon />
|
||||||
|
</IconButton>
|
||||||
|
<IconButton onClick={() => handleDeleteTheme(theme.id)}>
|
||||||
|
<DeleteIcon />
|
||||||
|
</IconButton>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
<IconButton onClick={() => handleApplyTheme(theme)}>
|
||||||
|
<CheckIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton onClick={() => handleEditTheme(theme.id)}>
|
</Box>
|
||||||
<EditIcon />
|
}
|
||||||
</IconButton>
|
></ListItem>
|
||||||
<IconButton onClick={() => handleDeleteTheme(theme.id)}>
|
|
||||||
<DeleteIcon />
|
|
||||||
</IconButton>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
<IconButton onClick={() => handleApplyTheme(theme)}>
|
|
||||||
<CheckIcon />
|
|
||||||
</IconButton>
|
|
||||||
</ListItemSecondaryAction>
|
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user