Created the LinkItem.jsx
This commit is contained in:
parent
eb54c4ad93
commit
b5dfe1e34a
@ -0,0 +1,12 @@
|
|||||||
|
import {Link, Typography} from "@mui/material";
|
||||||
|
|
||||||
|
export const LinkItem = ({route, onClick}) => {
|
||||||
|
return (
|
||||||
|
<Link underline="none" sx={{cursor: "pointer"}} onClick={onClick}>
|
||||||
|
<Typography variant="h5" sx={{mx: 2}} fontWeight={600}
|
||||||
|
color={route.path === window.location.pathname ? "primary.main" : "text.primary"}>
|
||||||
|
{route.name}
|
||||||
|
</Typography>
|
||||||
|
</Link>
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user