File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -72,18 +72,30 @@ function Header(props) {
72
72
}
73
73
74
74
let userSubMenu ;
75
+
75
76
if ( profile ) {
77
+ console . log ( 'PROFILE' ) ;
78
+ console . log ( JSON . stringify ( profile , null , 4 ) ) ;
79
+ let profileLink = `${ meta ? _ . replace ( BASE_URL , 'www' , meta . subdomains [ 0 ] ) : BASE_URL } /members/${ normalizedProfile . handle } ` ;
80
+ let paymentsLink = `${ config . URL . COMMUNITY } /PactsMemberServlet?module=PaymentHistory&full_list=false` ;
81
+
82
+ // Handle Wipro specific links (PS-257)
83
+ if ( profile && profile . email && profile . email . includes ( '@wipro.com' ) ) {
84
+ profileLink = 'https://topgear-app.wipro.com/user-details' ;
85
+ paymentsLink = 'https://topgear-app.wipro.com/my_payments' ;
86
+ }
87
+
76
88
userSubMenu = {
77
89
title : 'User' ,
78
90
items : [ {
79
91
enforceA : true ,
80
92
icon : < IconNavProfile /> ,
81
- link : ` ${ meta ? _ . replace ( BASE_URL , 'www' , meta . subdomains [ 0 ] ) : BASE_URL } /members/ ${ normalizedProfile . handle } ` ,
93
+ link : profileLink ,
82
94
title : 'My Profile' ,
83
95
} , {
84
96
openNewTab : true ,
85
97
icon : < IconNavWallet /> ,
86
- link : ` ${ config . URL . COMMUNITY } /PactsMemberServlet?module=PaymentHistory&full_list=false` ,
98
+ link : paymentsLink ,
87
99
title : 'Payments' ,
88
100
} , {
89
101
icon : < IconNavSettings /> ,
@@ -385,6 +397,7 @@ Header.propTypes = {
385
397
photoURL : PT . string ,
386
398
groups : PT . any ,
387
399
handle : PT . string ,
400
+ email : PT . string ,
388
401
} ) ,
389
402
theme : PT . shape ( ) . isRequired ,
390
403
logoutRedirect : PT . string ,
You can’t perform that action at this time.
0 commit comments