remove duplicate component
This commit is contained in:
parent
b187c50fb1
commit
525d4de3cd
1 changed files with 0 additions and 29 deletions
|
|
@ -1,29 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
interface Props {
|
||||
links: Array<{ href: string; text: string }>;
|
||||
}
|
||||
|
||||
export default function Navbar(props: Props): JSX.Element {
|
||||
return (
|
||||
<nav className="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<ul className="list-unstyle hstack">
|
||||
{props.links.map((link, idx) => (
|
||||
<li className="nav-item" key={idx}>
|
||||
{/* TODO: active logic doesnt work in prod because is compiled --> */}
|
||||
<a
|
||||
className={
|
||||
'nav-link' + window.location.pathname === link.href
|
||||
? 'active'
|
||||
: ''
|
||||
}
|
||||
href={link.href}
|
||||
>
|
||||
{link.text}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue