Skip to content

Commit

Permalink
add version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinkei committed Jul 26, 2021
1 parent 1ef7fe6 commit 1b1caed
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/Layout/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Box, IconButton } from '@material-ui/core'
import { Box, IconButton, Typography } from '@material-ui/core'
import React from 'react'
import { useRouter } from 'next/router'
import pkg from '../../package.json'
import useStyles from './styles'
import NotiIcon from '../../assets/images/icons/icon_notification_71.svg'
// import NotiIcon from '../../assets/images/icons/icon_notification_71.svg'
import SettingsIcon from '../../assets/images/icons/icon_settings.svg'
import CurrencyMenuButton from './CurrencyMenuButton'
import LangMenuButton from './LangMenuButton'
// import CurrencyMenuButton from './CurrencyMenuButton'
// import LangMenuButton from './LangMenuButton'
import ThemeModeButton from './ThemeModeButton'
import useIconProps from '../../misc/useIconProps'

Expand Down Expand Up @@ -33,6 +34,8 @@ const NavBar: React.FC<{ HeaderLeftComponent?: React.ReactNode; menuWidth: numbe
<IconButton className={classes.navBarButton} onClick={() => router.push('/settings')}>
<SettingsIcon {...iconProps} />
</IconButton>
{/* TODO: move this to other place in production */}
<Typography>v{pkg.version}</Typography>
</Box>
)
}
Expand Down

0 comments on commit 1b1caed

Please sign in to comment.