import React, { Component } from "react"; import { render } from "react-dom"; import HomePage from "./HomePage"; import { CssBaseline, IconButton} from "@mui/material"; import { ThemeProvider, createTheme } from '@mui/material/styles'; import UnsafeAlert from "./UnsafeAlert"; import { I18nextProvider } from "react-i18next"; import i18n from "./i18n"; import DarkModeIcon from '@mui/icons-material/DarkMode'; import LightModeIcon from '@mui/icons-material/LightMode'; export default class App extends Component { constructor(props) { super(props); this.state = { dark: false, } } lightTheme = createTheme({}); darkTheme = createTheme({ palette: { mode: 'dark', background: { default: "#070707" }, }, }); render() { return ( this.setState({dark:!this.state.dark})}> {this.state.dark ? :} ); } } const appDiv = document.getElementById("app"); render(, appDiv);