Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui/main: convert App file to typescript #2396

Merged
merged 2 commits into from
Jun 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions web/src/app/main/App.js → web/src/app/main/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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')
Expand Down