-
Beta Was this translation helpful? Give feedback.
Answered by
shkisme
Jul 29, 2024
Replies: 1 comment 1 reply
-
Please modify the file You can add the desired objects to the links array in the code below. const NavBar: React.FC = () => {
const links = [{ id: 1, name: "About", to: "/about" }, { id: 2, name: "Resume", to: "/resume" }] // add the desired objects
return (
<StyledWrapper className="">
<ul>
{links.map((link) => (
<li key={link.id}>
<Link href={link.to}>{link.name}</Link>
</li>
))}
</ul>
</StyledWrapper>
)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
diebbCN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please modify the file
src/layouts/RootLayout/Header/NavBar.tsx.
You can add the desired objects to the links array in the code below.