Skip to content

Commit 42dfa9c

Browse files
committed
version 2 done
1 parent 5d62254 commit 42dfa9c

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

components/ui/Navbar.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import SearchIcon from '@mui/icons-material/Search';
1414
import { NavbarTopItems } from './NavbarTopItems';
1515
import { Search, SearchIconWrapper, StyledInputBase } from './WrapperSearchBar';
1616
import { SideMenu } from './SideMenu';
17+
import { version } from '../../package.json';
1718

1819
interface Props {
1920
onChange?: (value: ChangeEvent<HTMLInputElement>) => void;
@@ -57,6 +58,12 @@ export const Navbar = ({ onChange }: Props) => {
5758
</Link>
5859
</NextLink>
5960

61+
<Box sx={{ display: { xs: 'none', sm: 'inline' } }} ml={2}>
62+
<Typography variant='caption' color='gray'>
63+
Version: {version}
64+
</Typography>
65+
</Box>
66+
6067
<Box flex={1} />
6168

6269
<NavbarTopItems />

components/ui/SideMenu.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
} from 'react-icons/ai';
1818
import * as externalLinks from '../../utils';
1919
import Typography from '@mui/material/Typography';
20+
import { version } from '../../package.json';
2021

2122
interface Props {
2223
open: boolean;
@@ -73,6 +74,14 @@ export const SideMenu = ({ open, onClose }: Props) => {
7374
</ListItemIcon>
7475
<ListItemText primary={'Personal Website'} />
7576
</ListItem>
77+
78+
<Divider variant='middle' sx={{ mt: 1 }} />
79+
80+
<ListItem>
81+
<Typography variant='caption' color='gray'>
82+
Version: {version}
83+
</Typography>
84+
</ListItem>
7685
</List>
7786
</Box>
7887
</Drawer>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "directory",
3-
"version": "0.1.0",
3+
"version": "2.0.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

0 commit comments

Comments
 (0)