Skip to content

what should i do to add a new item like About here? #379

Answered by shkisme
diebbCN asked this question in Q&A
Discussion options

You must be logged in to vote

Please modify the file src/layouts/RootLayout/Header/NavBar.tsx.

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>
  )
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diebbCN
Comment options

Answer selected by diebbCN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants