@@ -6,8 +6,13 @@ import Link from 'next/link';
6
6
import { usePathname } from 'next/navigation' ;
7
7
import Image from 'next/image' ;
8
8
import React from 'react' ;
9
+ import { fetchModesOfAttendance } from '../../lib/api/events/modeOfAttendance' ;
9
10
10
- export default function DashboardNavbar ( ) {
11
+ export default function DashboardNavbar ( {
12
+ registered,
13
+ } : {
14
+ registered : boolean ;
15
+ } ) {
11
16
const pathname = usePathname ( ) ;
12
17
const isProfile = pathname === '/dashboard/profile' ;
13
18
const isRegister = pathname === '/dashboard/register' ;
@@ -72,53 +77,56 @@ export default function DashboardNavbar() {
72
77
Optional
73
78
</ span >
74
79
</ div >
80
+ { ! registered && (
81
+ < div
82
+ className = { `flex items-center justify-center gap-2 border-b-2 border-solid px-6 py-5 max-md:gap-1 max-md:px-3 max-md:py-2 ${
83
+ isRegister ? 'border-b-primary' : undefined
84
+ } `}
85
+ >
86
+ < Image
87
+ width = { 24 }
88
+ height = { 24 }
89
+ className = { `${
90
+ isRegister ? 'filter-primary' : undefined
91
+ } h-6 w-6 max-md:h-5 max-md:w-5`}
92
+ src = "/source/TicketStar.svg"
93
+ alt = ""
94
+ />
95
+ < Link
96
+ href = "/dashboard/register"
97
+ className = { `text-xl font-semibold not-italic leading-normal tracking-[-0.2px] max-md:text-base ${
98
+ isRegister ? 'text-primary' : 'text-darkslategray-100'
99
+ } `}
100
+ >
101
+ Registration
102
+ </ Link >
103
+ </ div >
104
+ ) }
105
+
75
106
< div
76
107
className = { `flex items-center justify-center gap-2 border-b-2 border-solid px-6 py-5 max-md:gap-1 max-md:px-3 max-md:py-2 ${
77
- isRegister ? 'border-b-primary' : undefined
108
+ isStream ? 'border-b-primary' : undefined
78
109
} `}
79
110
>
80
111
< Image
81
112
width = { 24 }
82
113
height = { 24 }
83
114
className = { `${
84
- isRegister ? 'filter-primary' : undefined
115
+ isStream ? 'filter-primary' : undefined
85
116
} h-6 w-6 max-md:h-5 max-md:w-5`}
86
- src = "/source/TicketStar .svg"
117
+ src = "/source/stream .svg"
87
118
alt = ""
88
119
/>
89
120
< Link
90
- href = "/dashboard/register "
121
+ href = "/dashboard/stream "
91
122
className = { `text-xl font-semibold not-italic leading-normal tracking-[-0.2px] max-md:text-base ${
92
- isRegister ? 'text-primary' : 'text-darkslategray-100'
123
+ isStream ? 'text-primary' : 'text-darkslategray-100'
93
124
} `}
94
125
>
95
- Registration
126
+ Stream
96
127
</ Link >
97
128
</ div >
98
129
99
- { /*<div*/ }
100
- { /* className={`flex items-center justify-center gap-2 border-b-2 border-solid px-6 py-5 max-md:gap-1 max-md:px-3 max-md:py-2 ${*/ }
101
- { /* isStream ? 'border-b-primary' : undefined*/ }
102
- { /* }` }*/ }
103
- { /*>*/ }
104
- { /* <Image*/ }
105
- { /* width={24}*/ }
106
- { /* height={24}*/ }
107
- { /* className={`${*/ }
108
- { /* isStream ? 'filter-primary' : undefined*/ }
109
- { /* } h-6 w-6 max-md:h-5 max-md:w-5` }*/ }
110
- { /* src="/source/stream.svg"*/ }
111
- { /* alt=""*/ }
112
- { /* />*/ }
113
- { /* <Link*/ }
114
- { /* href="/dashboard/stream"*/ }
115
- { /* className={`text-xl font-semibold not-italic leading-normal tracking-[-0.2px] max-md:text-base ${*/ }
116
- { /* isStream ? 'text-primary' : 'text-darkslategray-100'*/ }
117
- { /* }` }*/ }
118
- { /* >*/ }
119
- { /* Stream*/ }
120
- { /* </Link>*/ }
121
- { /*</div>*/ }
122
130
{ /*<div*/ }
123
131
{ /* className={`flex items-center justify-center gap-2 border-b-2 border-solid px-6 py-5 max-md:gap-1 max-md:px-3 max-md:py-2 ${*/ }
124
132
{ /* isVideos ? 'border-b-primary' : undefined*/ }
@@ -142,6 +150,7 @@ export default function DashboardNavbar() {
142
150
{ /* Videos*/ }
143
151
{ /* </Link>*/ }
144
152
{ /*</div>*/ }
153
+
145
154
{ /*<div*/ }
146
155
{ /* className={`flex items-center justify-center gap-2 border-b-2 border-solid px-6 py-5 max-md:gap-1 max-md:px-3 max-md:py-2 ${*/ }
147
156
{ /* isCertificates ? 'border-b-primary' : undefined*/ }
0 commit comments