Skip to content

Commit a247a5c

Browse files
Francisca105nalves599
authored andcommitted
Refactor CompanyStand and SessionsZone components to remove unused imports and wrap room elements in anchor tags for navigation
1 parent 2c49eac commit a247a5c

File tree

2 files changed

+48
-43
lines changed

2 files changed

+48
-43
lines changed

src/app/(authenticated)/venue/stands/CompanyStand.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client";
22

33
import React from "react";
4-
import Link from "next/link";
54

65
interface StandProps {
76
stand: Stand;

src/app/(authenticated)/venue/stands/SessionsZone.tsx

Lines changed: 48 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,58 @@ const SessionsStands = () => {
44
{/* Main Rooms */}
55
<g id="rooms">
66
{/* Auditorium */}
7-
<g id="auditorium">
8-
<rect
9-
x="51.5"
10-
y="12"
11-
width="204.7"
12-
height="109"
13-
fill="white"
14-
stroke="black"
15-
strokeWidth="1.5"
16-
/>
17-
<text x="120" y="69" fontSize="13">
18-
Auditorium
19-
</text>
20-
</g>
7+
<a href="/schedule?place=Auditorium">
8+
<g id="auditorium">
9+
<rect
10+
x="51.5"
11+
y="12"
12+
width="204.7"
13+
height="109"
14+
fill="white"
15+
stroke="black"
16+
strokeWidth="1.5"
17+
/>
18+
<text x="120" y="69" fontSize="13">
19+
Auditorium
20+
</text>
21+
</g>
22+
</a>
2123

2224
{/* Room 1 */}
23-
<g id="room1">
24-
<rect
25-
x="254.9"
26-
y="12"
27-
width="65"
28-
height="109"
29-
fill="white"
30-
stroke="black"
31-
strokeWidth="1.5"
32-
/>
33-
<text x="264" y="69" fontSize="13">
34-
Room 1
35-
</text>
36-
</g>
25+
<a href="/schedule?place=Room 1">
26+
<g id="room1">
27+
<rect
28+
x="254.9"
29+
y="12"
30+
width="65"
31+
height="109"
32+
fill="white"
33+
stroke="black"
34+
strokeWidth="1.5"
35+
/>
36+
<text x="264" y="69" fontSize="13">
37+
Room 1
38+
</text>
39+
</g>
40+
</a>
3741

3842
{/* Room 2 */}
39-
<g id="room2">
40-
<rect
41-
x="358.8"
42-
y="12"
43-
width="65"
44-
height="109"
45-
fill="white"
46-
stroke="black"
47-
strokeWidth="1.5"
48-
/>
49-
<text x="366" y="69" fontSize="13">
50-
Room 2
51-
</text>
52-
</g>
43+
<a href="/schedule?place=Room 2">
44+
<g id="room2">
45+
<rect
46+
x="358.8"
47+
y="12"
48+
width="65"
49+
height="109"
50+
fill="white"
51+
stroke="black"
52+
strokeWidth="1.5"
53+
/>
54+
<text x="366" y="69" fontSize="13">
55+
Room 2
56+
</text>
57+
</g>
58+
</a>
5359
</g>
5460

5561
{/* 2nd Stage */}

0 commit comments

Comments
 (0)