Skip to content

Commit db00865

Browse files
committed
feat: temporarily disable teams page
1 parent ea066af commit db00865

2 files changed

Lines changed: 27 additions & 20 deletions

File tree

src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ pub enum Route {
5757
HackathonPeople {
5858
slug: String
5959
},
60-
#[route("/team")]
61-
HackathonTeam {
62-
slug: String
63-
},
60+
// Teams feature temporarily disabled
61+
// #[route("/team")]
62+
// HackathonTeam {
63+
// slug: String
64+
// },
6465
#[route("/schedule")]
6566
HackathonSchedule {
6667
slug: String

src/ui/foundation/layout/sidebar.rs

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ fn NavItems(
2424
has_dashboard: bool,
2525
has_applicants: bool,
2626
has_people: bool,
27-
has_team: bool,
27+
// Teams feature temporarily disabled
28+
// has_team: bool,
2829
has_schedule: bool,
2930
has_submission: bool,
3031
has_checkin: bool,
@@ -74,17 +75,18 @@ fn NavItems(
7475
}
7576
}
7677
}
77-
if has_team {
78-
div { onclick: handle_click,
79-
SidebarItem {
80-
label: "Team".to_string(),
81-
icon: LdUsers,
82-
to: Route::HackathonTeam {
83-
slug: slug.clone(),
84-
},
85-
}
86-
}
87-
}
78+
// Teams feature temporarily disabled
79+
// if has_team {
80+
// div { onclick: handle_click,
81+
// SidebarItem {
82+
// label: "Team".to_string(),
83+
// icon: LdUsers,
84+
// to: Route::HackathonTeam {
85+
// slug: slug.clone(),
86+
// },
87+
// }
88+
// }
89+
// }
8890
if has_schedule {
8991
div { onclick: handle_click,
9092
SidebarItem {
@@ -209,7 +211,8 @@ pub fn Sidebar(
209211
let has_dashboard = has(DASHBOARD_ROLES);
210212
let has_applicants = has(APPLICANTS_ROLES);
211213
let has_people = has(PEOPLE_ROLES);
212-
let has_team = has(TEAM_ROLES) && has_submitted_application;
214+
// Teams feature temporarily disabled
215+
// let has_team = has(TEAM_ROLES) && has_submitted_application;
213216
let has_schedule = has(SCHEDULE_ROLES);
214217
let has_submission = has(SUBMISSION_ROLES);
215218
let has_checkin = has(CHECKIN_ROLES);
@@ -257,7 +260,8 @@ pub fn Sidebar(
257260
has_dashboard,
258261
has_applicants,
259262
has_people,
260-
has_team,
263+
// Teams feature temporarily disabled
264+
// has_team,
261265
has_schedule,
262266
has_submission,
263267
has_checkin,
@@ -290,7 +294,8 @@ pub fn Sidebar(
290294
has_dashboard,
291295
has_applicants,
292296
has_people,
293-
has_team,
297+
// Teams feature temporarily disabled
298+
// has_team,
294299
has_schedule,
295300
has_submission,
296301
has_checkin,
@@ -331,7 +336,8 @@ pub fn SidebarItem<I: IconShape + Clone + PartialEq + 'static>(
331336
(Route::HackathonDashboard { .. }, Route::HackathonDashboard { .. }) => true,
332337
(Route::HackathonApplicants { .. }, Route::HackathonApplicants { .. }) => true,
333338
(Route::HackathonPeople { .. }, Route::HackathonPeople { .. }) => true,
334-
(Route::HackathonTeam { .. }, Route::HackathonTeam { .. }) => true,
339+
// Teams feature temporarily disabled
340+
// (Route::HackathonTeam { .. }, Route::HackathonTeam { .. }) => true,
335341
(Route::HackathonSchedule { .. }, Route::HackathonSchedule { .. }) => true,
336342
(Route::HackathonMessages { .. }, Route::HackathonMessages { .. }) => true,
337343
(Route::HackathonSubmission { .. }, Route::HackathonSubmission { .. }) => true,

0 commit comments

Comments
 (0)