Skip to content

Commit 5e75b3c

Browse files
committed
Added button to go back to rooms from room page
1 parent 60eecb3 commit 5e75b3c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/pages/Competition/Room.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useCallback, useEffect, useMemo } from 'react';
2-
import { useParams } from 'react-router-dom';
2+
import { Link, useParams } from 'react-router-dom';
33
import { allChildActivities } from '../../lib/activities';
44
import { useWCIF } from './WCIFProvider';
55
import ActivityRow from '../../components/ActivitiyRow';
@@ -81,6 +81,14 @@ export default function Round() {
8181
</div>
8282
</div>
8383
))}
84+
<hr className="my-2" />
85+
<div className="flex flex-row justify-between">
86+
<Link
87+
to={`/competitions/${wcif?.id}/rooms`}
88+
className="w-full border bg-blue-200 rounded-md p-2 px-1 flex cursor-pointer hover:bg-blue-400 group transition-colors my-1 flex-row">
89+
Back to list of Rooms
90+
</Link>
91+
</div>
8492
</div>
8593
);
8694
}

0 commit comments

Comments
 (0)