Skip to content

Commit 5c61831

Browse files
Add organizer dropdown to participation page
1 parent 1478a9e commit 5c61831

2 files changed

Lines changed: 92 additions & 17 deletions

File tree

src/components/CommunityPortal/Reports/Participation/EventParticipation.jsx

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function EventParticipation() {
1212
const darkMode = useSelector(state => state.theme.darkMode);
1313
const exportRef = useRef(null);
1414
const [exporting, setExporting] = useState(false);
15+
const [selectedOrganizer, setSelectedOrganizer] = useState('All Organizers');
1516

1617
const handleSaveAsPDF = useCallback(() => {
1718
if (globalThis.window === undefined || globalThis.document === undefined) return;
@@ -57,23 +58,38 @@ function EventParticipation() {
5758
>
5859
Social And Recreational Management
5960
</h1>
60-
<button
61-
className={`${styles.savePdfBtn} ${
62-
darkMode ? styles.savePdfBtnDark : styles.savePdfBtnLight
63-
} ${styles.noPrint}`}
64-
onClick={handleSaveAsPDF}
65-
disabled={exporting}
66-
aria-busy={exporting}
67-
>
68-
{exporting ? (
69-
'Preparing…'
70-
) : (
71-
<>
72-
<FontAwesomeIcon icon={faFilePdf} style={{ marginRight: '6px' }} />
73-
Save as PDF
74-
</>
75-
)}
76-
</button>
61+
<div className={styles.headerActions}>
62+
<button
63+
className={`${styles.savePdfBtn} ${
64+
darkMode ? styles.savePdfBtnDark : styles.savePdfBtnLight
65+
} ${styles.noPrint}`}
66+
onClick={handleSaveAsPDF}
67+
disabled={exporting}
68+
aria-busy={exporting}
69+
>
70+
{exporting ? (
71+
'Preparing…'
72+
) : (
73+
<>
74+
<FontAwesomeIcon icon={faFilePdf} style={{ marginRight: '6px' }} />
75+
Save as PDF
76+
</>
77+
)}
78+
</button>
79+
80+
<select
81+
className={`${styles.organizerDropdown} ${
82+
darkMode ? styles.organizerDropdownDark : ''
83+
}`}
84+
value={selectedOrganizer}
85+
onChange={e => setSelectedOrganizer(e.target.value)}
86+
>
87+
<option value="All Organizers">All Organizers</option>
88+
<option value="Organizer 1">Organizer 1</option>
89+
<option value="Organizer 2">Organizer 2</option>
90+
<option value="Organizer 3">Organizer 3</option>
91+
</select>
92+
</div>
7793
</header>
7894

7995
<MyCases />

src/components/CommunityPortal/Reports/Participation/Participation.module.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,34 @@
4545
letter-spacing: 0.5px;
4646
}
4747

48+
.headerActions {
49+
display: flex;
50+
align-items: center;
51+
gap: 12px;
52+
}
53+
54+
.organizerDropdown {
55+
padding: 8px 14px;
56+
border-radius: 6px;
57+
border: 1px solid #d1d5db;
58+
background-color: #fff;
59+
color: #333;
60+
font-size: 14px;
61+
min-width: 180px;
62+
cursor: pointer;
63+
}
64+
65+
.organizerDropdown:focus {
66+
outline: none;
67+
border-color: #3b82f6;
68+
}
69+
70+
.organizerDropdownDark {
71+
background-color: #1e293b;
72+
color: #fff;
73+
border: 1px solid #475569;
74+
}
75+
4876
/* ---------- Save as PDF button ---------- */
4977
.savePdfBtn {
5078
font-size: 14px;
@@ -1133,3 +1161,34 @@
11331161
border: 1px solid #3A506B;
11341162
}
11351163

1164+
.insightsDark .insightsTab {
1165+
background-color: #3A506B;
1166+
color: #fff;
1167+
border-right: 1px solid #555;
1168+
}
1169+
1170+
.insightsDark .insightsTab.activeTab {
1171+
background-color: #007bff;
1172+
color: #fff;
1173+
}
1174+
1175+
/* ---------- Info Tooltip Icons ---------- */
1176+
.infoIcon {
1177+
margin-left: 6px;
1178+
font-size: 0.85rem;
1179+
cursor: pointer;
1180+
color: #666;
1181+
vertical-align: middle;
1182+
}
1183+
1184+
.infoIcon:hover {
1185+
color: #000;
1186+
}
1187+
1188+
.trackingTableDark .infoIcon {
1189+
color: #ccc;
1190+
}
1191+
1192+
.trackingTableDark .infoIcon:hover {
1193+
color: #fff;
1194+
}

0 commit comments

Comments
 (0)