mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-03 10:42:00 +08:00
Persist slice of redux state in local storage
This commit is contained in:
@@ -26,7 +26,7 @@ import DoubleArrowIcon from "@material-ui/icons/DoubleArrow";
|
||||
import CloseIcon from "@material-ui/icons/Close";
|
||||
import { AppState } from "./store";
|
||||
import { paths } from "./paths";
|
||||
import { makeTheme } from "./theme";
|
||||
import { useTheme } from "./theme";
|
||||
import { closeSnackbar } from "./actions/snackbarActions";
|
||||
import ListItemLink from "./components/ListItemLink";
|
||||
import SchedulersView from "./views/SchedulersView";
|
||||
@@ -146,7 +146,7 @@ function SlideUpTransition(props: TransitionProps) {
|
||||
}
|
||||
|
||||
function App(props: ConnectedProps<typeof connector>) {
|
||||
const theme = makeTheme(props.themePreference);
|
||||
const theme = useTheme(props.themePreference);
|
||||
const classes = useStyles(theme)();
|
||||
const [open, setOpen] = useState(true);
|
||||
const toggleDrawer = () => setOpen(!open);
|
||||
|
Reference in New Issue
Block a user