Skip to content

Commit e9fdae3

Browse files
committed
Link to room page from other activity
1 parent 703ff41 commit e9fdae3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pages/Competition/Activity/OtherActivity.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,14 @@ export default function OtherGroup({ competitionId, activity, persons }: OtherGr
7272
<>
7373
<div className="p-2">
7474
<h3 className="font-bold">
75-
<span
75+
<Link
7676
className="px-3 py-2 rounded mr-2"
7777
style={{
7878
backgroundColor: `${room?.color}70`,
79-
}}>
79+
}}
80+
to={`/competitions/${wcif?.id}/rooms/${room?.id}`}>
8081
{room?.name}
81-
</span>
82+
</Link>
8283
{activity.name || activity.activityCode}
8384
</h3>{' '}
8485
<p className="p-2">

0 commit comments

Comments
 (0)