File tree 5 files changed +15
-24
lines changed
5 files changed +15
-24
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ import type { Metadata } from "next";
2
2
3
3
import SideNavBar from "@/components/Dashboard/SideNavBar" ;
4
4
import TopNavBar from "@/components/Dashboard/TopNavBar" ;
5
- import { UserType } from "@/components/contexts/UserContext" ;
6
- import withAuthGuard from "@/components/hoc/withAuthGuard" ;
7
5
8
6
export const metadata : Metadata = {
9
7
title : "Hack the Change - Admin" ,
@@ -32,4 +30,4 @@ function AdminLayout({ children }: { children: React.ReactNode }) {
32
30
) ;
33
31
}
34
32
35
- export default withAuthGuard ( AdminLayout , [ UserType . Admin ] ) ;
33
+ export default AdminLayout ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import UserFoodTicket from "@/components/UserProfile/FoodTicket" ;
2
2
3
3
export default function FoodTicket ( ) {
4
- return < UserFoodTicket /> ;
4
+ return (
5
+ < >
6
+ < UserFoodTicket />
7
+ </ >
8
+ ) ;
5
9
}
Original file line number Diff line number Diff line change 1
1
import TeamProfile from "@/components/UserProfile/TeamProfile" ;
2
+ import { UserType } from "@/components/contexts/UserContext" ;
3
+ import withAuthGuard from "@/components/hoc/withAuthGuard" ;
2
4
3
- export default function TeamDetails ( ) {
5
+ function TeamDetails ( ) {
4
6
return < TeamProfile /> ;
5
7
}
8
+
9
+ export default withAuthGuard ( TeamDetails , [
10
+ UserType . Participant ,
11
+ UserType . Admin ,
12
+ UserType . Judge ,
13
+ ] ) ;
You can’t perform that action at this time.
0 commit comments