feat: theme mode support follows system

This commit is contained in:
GyDi
2022-07-17 16:02:17 +08:00
parent 115e604627
commit 3d1b6d7de7
9 changed files with 97 additions and 43 deletions

View File

@@ -1,5 +1,6 @@
import { styled, Switch } from "@mui/material";
// todo: deprecated
// From: https://mui.com/components/switches/
const PaletteSwitch = styled(Switch)(({ theme }) => ({
width: 62,