Skip to content

Commit

Permalink
Fix: #93, #94, #90 rapiDoc, Hamburger Issue, #92 -- cursor pointer an…
Browse files Browse the repository at this point in the history
…d entire logo clickable
  • Loading branch information
karthik cs authored and georgepadayatti committed Apr 7, 2024
1 parent 0841989 commit 4e93c7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/component/AppBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AppBar, Box, Toolbar, IconButton, Typography } from "@mui/material";
import { AppBarMenu } from "./AppBarMenu";
import Logo from "../../../public/img/logo.jpg";
import './style.scss';
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation, useNavigate } from "react-router-dom";
import { getDevice, publicRoutes } from '../../utils/utils'
import { useTranslation } from "react-i18next";
import { useAppSelector } from "../../customHooks";
Expand All @@ -13,6 +13,7 @@ export default function MyAppBar({handleOpenMenu}) {
const { t } = useTranslation('translation');
const { isMobile } = getDevice();
const { pathname } = useLocation();
const navigate = useNavigate();
const isAuthenticated = localStorage.getItem('Token');

const adminData = useAppSelector(
Expand Down Expand Up @@ -41,7 +42,7 @@ export default function MyAppBar({handleOpenMenu}) {
<Link to="/">
<img className='logoImg' src={Logo} alt="Logo" />
</Link>
<Box className='flex-column'>
<Box className='flex-column' onClick={() => navigate('/')} sx={{cursor: 'pointer'}}>
<Typography
sx={{
fontSize: isMobile ? '1rem' : '1.5rem',
Expand Down

0 comments on commit 4e93c7e

Please sign in to comment.