Skip to content

Commit

Permalink
Fixed sideMenu key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
k-hian committed May 7, 2024
1 parent d497762 commit 44bed49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/sideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ export default function SideMenu() {
Locations (Not Functional Yet)
</div>
<ul role="list" className="-mx-2 mt-2 space-y-1">
{locations.map((team) => (
<li key={locations.name}>
{locations.map((location) => (
<li key={location.id}>
<a
href={locations.href}
href={location.href}
className={classNames(
locations.current
? "bg-gray-800 text-white"
Expand All @@ -119,9 +119,9 @@ export default function SideMenu() {
)}
>
<span className="flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border border-gray-700 bg-gray-800 text-[0.625rem] font-medium text-gray-400 group-hover:text-white">
{locations.initial}
{location.initial}
</span>
<span className="truncate">{locations.name}</span>
<span className="truncate">{location.id}</span>
</a>
</li>
))}
Expand Down

0 comments on commit 44bed49

Please sign in to comment.