diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-13 01:54:23 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-13 01:54:23 -0400 |
commit | ba3331efe8f51cb1a0029e20bbfd7060312b810e (patch) | |
tree | 31eb040c3d2cc863bb25c69cf4b4ee1928452fb0 /src/views/components | |
parent | e25a6d3be9b9ae443dd3e1cd57a8c5912cc088b2 (diff) | |
download | donetick-frontend-ba3331efe8f51cb1a0029e20bbfd7060312b810e.tar.gz donetick-frontend-ba3331efe8f51cb1a0029e20bbfd7060312b810e.tar.bz2 donetick-frontend-ba3331efe8f51cb1a0029e20bbfd7060312b810e.zip |
Add Footer component to Landing page
Diffstat (limited to '')
-rw-r--r-- | src/views/components/NavBar.jsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/views/components/NavBar.jsx b/src/views/components/NavBar.jsx index 2da09f5..d3708ae 100644 --- a/src/views/components/NavBar.jsx +++ b/src/views/components/NavBar.jsx @@ -21,7 +21,7 @@ import { Typography, } from '@mui/joy' import { useState } from 'react' -import { useLocation } from 'react-router-dom' +import { useLocation, useNavigate } from 'react-router-dom' import { version } from '../../../package.json' import NavBarLink from './NavBarLink' const links = [ @@ -63,6 +63,7 @@ const links = [ ] const NavBar = () => { + const navigate = useNavigate() const [drawerOpen, setDrawerOpen] = useState(false) const [openDrawer, closeDrawer] = [ () => setDrawerOpen(true), @@ -89,7 +90,12 @@ const NavBar = () => { <IconButton size='sm' variant='plain' onClick={() => setDrawerOpen(true)}> <MenuRounded /> </IconButton> - <Box className='flex items-center gap-2'> + <Box + className='flex items-center gap-2' + onClick={() => { + navigate('/my/chores') + }} + > <img component='img' src={Logo} width='34' /> <Typography level='title-lg' |