Entrega do Desafio #2

Merged
anacarolinaduartecavalcante merged 81 commits from develop into main 2023-01-14 14:05:45 +00:00
Showing only changes of commit 3753841baa - Show all commits

View File

@ -0,0 +1,23 @@
import { NavLink } from "react-router-dom";
interface NavLinkProps {
to: string;
text: string;
}
const NavLinkContent = (props: NavLinkProps) => {
const {to , text} = props;
return (
<li>
<NavLink to={to} style={({ isActive }) => ({
color: isActive ? "#fff" : "#7d7d7d",
background: isActive ? "#000000" : "unset",
fontWeight: isActive ? "700" : "400",})}>
{text}
</NavLink>
</li>
);
};
export { NavLinkContent };