File tree 6 files changed +24
-3
lines changed
6 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 29
29
"js-cookie" : " ^3.0.5" ,
30
30
"jwt-decode" : " ^4.0.0" ,
31
31
"mini-css-extract-plugin" : " ^2.9.0" ,
32
+ "pdfjs-dist" : " ^4.5.136" ,
32
33
"papaparse" : " ^5.4.1" ,
33
34
"pdfjs-dist" : " ^4.5.136" ,
34
35
"react" : " ^18.3.1" ,
Original file line number Diff line number Diff line change @@ -388,4 +388,4 @@ const Header: React.FC = () => {
388
388
) ;
389
389
} ;
390
390
391
- export default Header ;
391
+ export default Header ;
Original file line number Diff line number Diff line change @@ -104,4 +104,4 @@ Table.propTypes = {
104
104
tableButton : PropTypes . any ,
105
105
} ;
106
106
107
- export default Table ;
107
+ export default Table ;
Original file line number Diff line number Diff line change @@ -269,4 +269,4 @@ const HorizontalStepper = () => {
269
269
) ;
270
270
} ;
271
271
272
- export default HorizontalStepper ;
272
+ export default HorizontalStepper ;
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ const AppRouter: React.FC = () => {
160
160
< Route path = "/admin" >
161
161
< Route index element = { < Navigate to = "dashboard" replace /> } />
162
162
< Route path = "*" element = { < NotFound redirectPath = "/admin" /> } />
163
+ < Route path = "*" element = { < NotFound redirectPath = "/admin" /> } />
163
164
< Route
164
165
path = "dashboard"
165
166
element = {
@@ -172,6 +173,8 @@ const AppRouter: React.FC = () => {
172
173
< Route path = "users" element = { < Users /> } />
173
174
< Route path = "requests" element = { < Requests /> } />
174
175
< Route path = "request/:id" element = { < ViewRequest /> } />
176
+ < Route path = "requests" element = { < Requests /> } />
177
+ < Route path = "request/:id" element = { < ViewRequest /> } />
175
178
< Route path = "settings" element = { < Settings /> } />
176
179
</ Route >
177
180
</ Route >
Original file line number Diff line number Diff line change @@ -236,6 +236,23 @@ const userSlice = createSlice({
236
236
state . isLoading = false ;
237
237
state . isSuccess = true ;
238
238
state . message = action . payload . message ;
239
+ console . log ( action . payload ) ;
240
+ } )
241
+ . addCase ( registerAsSeller . rejected , ( state , action : PayloadAction < any > ) => {
242
+ state . isLoading = false ;
243
+ state . isSuccess = false ;
244
+ state . isError = true ;
245
+ state . message = action . payload ;
246
+ } )
247
+ . addCase ( verifyEmail . pending , ( state ) => {
248
+ state . isLoading = true ;
249
+ state . isVerified = false ;
250
+ state . isSuccess = false ;
251
+ } )
252
+ . addCase ( verifyEmail . fulfilled , ( state , action : PayloadAction < any > ) => {
253
+ state . isLoading = false ;
254
+ state . isVerified = true ;
255
+ state . message = action . payload . message ;
239
256
toast . success ( state . message )
240
257
} )
241
258
. addCase ( registerAsSeller . rejected , ( state , action : PayloadAction < any > ) => {
You can’t perform that action at this time.
0 commit comments