Смена ховер эффекта в меню

This commit is contained in:
ArtChaos189 2023-05-31 22:44:03 +03:00
parent 110eb6df28
commit 035e3f0655

@ -117,10 +117,18 @@ const Navigation = (props: any) => {
background: "#2f3339", background: "#2f3339",
}} }}
> >
{links.map((e, i) => ( {links.map((e, index) => (
<ListItem key={i} disablePadding sx={{ display: "block" }}> <ListItem key={index} disablePadding sx={{ display: "block" }}>
<Link to={e.path} style={{ textDecoration: "none" }} className={e.className}> <Link
to={e.path}
style={{
textDecoration: "none",
}}
className={e.className}
>
<ListItemButton <ListItemButton
disableGutters
disableRipple
onClick={props.SladeMobileHC} onClick={props.SladeMobileHC}
sx={{ sx={{
minHeight: 48, minHeight: 48,
@ -128,6 +136,9 @@ const Navigation = (props: any) => {
justifyContent: props.visible ? "initial" : "center", justifyContent: props.visible ? "initial" : "center",
px: 2.5, px: 2.5,
margin: "20px 0", margin: "20px 0",
"&:active": {
background: "gray",
},
}} }}
> >
<ListItemIcon <ListItemIcon