Skip to content

Commit 099d235

Browse files
committed
Fix image case sensitivity issue by converting dynamic string to lowercase
1 parent 3b11ce8 commit 099d235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/layout/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const Navbar = () => {
9191
<Link href={link.href} key={link.name}>
9292
<DropdownMenuItem className="from-[#4c73ff] to-[#389bff] capitalize text-slate-950 hover:bg-gradient-to-r dark:text-white">
9393
<Image
94-
src={`/assets/icons/${link.name}-${mode}.svg`}
94+
src={`/assets/icons/${link.name.toLowerCase()}-${mode}.svg`}
9595
width={30}
9696
height={30}
9797
alt={link.name}

0 commit comments

Comments
 (0)