Skip to content

Commit

Permalink
Merge pull request #2396 from target/ts-conversion-App
Browse files Browse the repository at this point in the history
ui/main: convert App file to typescript
  • Loading branch information
Forfold authored Jun 6, 2022
2 parents c1dabce + 17feb8a commit e9e4e54
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit e9e4e54

Please sign in to comment.