Skip to content

Commit

Permalink
final fix, please
Browse files Browse the repository at this point in the history
  • Loading branch information
Aron Petkovski committed Nov 14, 2023
1 parent ce7297e commit 4f0ad83
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/home/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ export default function Sidebar({ isMobile }: { isMobile: boolean }): JSX.Elemen
)}
<ul className="flex flex-col gap-y-[25px]">
{sidebarItems.map(({ url, label, Icon }, i) => (
<Link key={url + i} href={url}>
<Link
key={url + i}
href={url}
target={label !== 'Profile' ? '_blank' : ''}
rel="noopener noreferrer"
>
<li
className={`${
router.pathname === url && 'rounded-lg bg-primary font-medium text-white'
Expand Down

0 comments on commit 4f0ad83

Please sign in to comment.