Skip to content

Commit

Permalink
menu fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
otobongfp committed Mar 26, 2024
1 parent 7e4751d commit 4383291
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
26 changes: 14 additions & 12 deletions src/components/global/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Sidebar = () => {
<Menu iconShape="square">
<MenuItem
onClick={handleToggleCollapse}
icon={isCollapsed ? <MenuOutlinedIcon /> : undefined}
//icon={isCollapsed ? <MenuOutlinedIcon /> : undefined}
style={{
margin: "10px 0 40px 0",
color: "#17054b",
Expand All @@ -111,7 +111,7 @@ const Sidebar = () => {
alignItems="center"
ml="15px"
>
<img
{/* <img
alt="lto-icon"
width="30px"
src={ltoIcon}
Expand All @@ -120,14 +120,16 @@ const Sidebar = () => {
marginRight: "2px",
borderRadius: "50%",
}}
/>
<Typography
style={{ fontSize: "16px", fontWeight: "600" }}
variant="h6"
color="#17054b"
>
DASHBOARD
</Typography>
/> */}
{isHovered && (
<Typography
style={{ fontSize: "24px", fontWeight: "600" }}
variant="h6"
color="#17054b"
>
DASHBOARD
</Typography>
)}
<IconButton onClick={handleToggleCollapse}>
{/* <MenuOutlinedIcon /> */}
</IconButton>
Expand Down Expand Up @@ -192,12 +194,12 @@ const Sidebar = () => {
/>
</Box>

{!isCollapsed && (
{isHovered && (
<Box mt="70px" mb="25px">
<Box display="flex" justifyContent="center" alignItems="center">
<img
alt="lto-network"
width="150px"
width="180px"
src={LOGO}
style={{ cursor: "pointer" }}
/>
Expand Down
13 changes: 12 additions & 1 deletion src/components/global/Topbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box, IconButton, useTheme, Typography } from "@mui/material";
import InputBase from "@mui/material/InputBase";
import SearchIcon from "@mui/icons-material/Search";
import ArrowOutwardOutlinedIcon from "@mui/icons-material/ArrowOutwardOutlined";
import { ltoIcon } from "../../assets";
import { LOGO, ltoIcon } from "../../assets/index";

const Topbar = () => {
const theme = useTheme();
Expand All @@ -27,12 +27,23 @@ const Topbar = () => {

return (
<div style={{ backgroundColor: theme.palette.primary.main }}>
<Box></Box>
<Box
display="flex"
justifyContent="space-between"
alignItems="center"
p={2}
>
<img
alt="lto-icon"
width="40px"
src={ltoIcon}
style={{
cursor: "pointer",
marginRight: "2px",
// borderRadius: "50%",
}}
/>
{/* {isMobile && (
<Box display="flex" backgroundColor="white" borderRadius="3px">
<InputBase sx={{ ml: 2, flex: 1 }} placeholder="Search" />
Expand Down

0 comments on commit 4383291

Please sign in to comment.