diff --git a/web/src/app/main/App.js b/web/src/app/main/App.tsx similarity index 96% rename from web/src/app/main/App.js rename to web/src/app/main/App.tsx index f67fe7a391..24b4f8d99a 100644 --- a/web/src/app/main/App.js +++ b/web/src/app/main/App.tsx @@ -19,11 +19,12 @@ import makeStyles from '@mui/styles/makeStyles' import { useIsWidthDown } from '../util/useWidth' import { isIOS } from '../util/browsers' import UserSettingsPopover from './components/UserSettingsPopover' +import { Theme } from '@mui/material/styles' import AppRoutes from './AppRoutes' import { useURLKey } from '../actions' import NavBar from './NavBar' -const useStyles = makeStyles((theme) => ({ +const useStyles = makeStyles((theme: Theme) => ({ root: { flexGrow: 1, zIndex: 1, @@ -49,7 +50,7 @@ const useStyles = makeStyles((theme) => ({ }, })) -export default function App() { +export default function App(): JSX.Element { const classes = useStyles() const [showMobile, setShowMobile] = useState(false) const fullScreen = useIsWidthDown('md')