Add concept of Flag values under window object to ensure values are

parsed before use
This commit is contained in:
Ken Hibino
2022-02-28 06:38:37 -08:00
parent 2991ea5a60
commit 1a27aaacbe
8 changed files with 118 additions and 63 deletions

View File

@@ -26,7 +26,7 @@ import TimelineIcon from "@material-ui/icons/Timeline";
import DoubleArrowIcon from "@material-ui/icons/DoubleArrow";
import CloseIcon from "@material-ui/icons/Close";
import { AppState } from "./store";
import { paths } from "./paths";
import { paths as getPaths } from "./paths";
import { isDarkTheme, useTheme } from "./theme";
import { closeSnackbar } from "./actions/snackbarActions";
import { toggleDrawer } from "./actions/settingsActions";
@@ -156,6 +156,7 @@ function SlideUpTransition(props: TransitionProps) {
function App(props: ConnectedProps<typeof connector>) {
const theme = useTheme(props.themePreference);
const classes = useStyles(theme)();
const paths = getPaths();
return (
<ThemeProvider theme={theme}>
<Router>