Skip to content

Commit

Permalink
button instead of span
Browse files Browse the repository at this point in the history
  • Loading branch information
whazor committed Aug 15, 2024
1 parent 8bf2711 commit 6f7c9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function Home(props: {releases: Release[]}) {
)
.sort((a, b) => groupMap[b].length - groupMap[a].length)
.map((group, i) => {
return <span key={group}
return <button key={group}
onClick={() =>
setSelectedGroup(group === selectedGroup ? undefined : group)
}
Expand All @@ -59,7 +59,7 @@ export default function Home(props: {releases: Release[]}) {
(selectedGroup === group ? " bg-blue-300 text-blue-900" : "")
}>
{group}
</span>
</button>
})}
</div>
</div>
Expand Down

0 comments on commit 6f7c9d8

Please sign in to comment.