Skip to content

Commit

Permalink
Merge pull request #688 from bounswe/frontend/feature/fix_tag_badge_r…
Browse files Browse the repository at this point in the history
…outing

Frontend/feature/fix tag badge routing
  • Loading branch information
NazireAta authored Dec 14, 2024
2 parents c297af3 + fc09387 commit 8951b26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/routes/question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,10 @@ export default function QuestionPage() {
/>
) : (
<div>
{question.tags.map((tag) => (
<Badge key={tag.id}>{tag.name}</Badge>
{question.tags.map((s) => (
<Link to={`/tag/${s.id}`} key={s.name}>
<Badge>{s.name}</Badge>
</Link>
))}
</div>
)}
Expand Down

0 comments on commit 8951b26

Please sign in to comment.