diff --git a/package-lock.json b/package-lock.json
index 9423834165..eb8e5f2778 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16760,8 +16760,8 @@
"dev": true
},
"navigation-component": {
- "version": "github:topcoder-platform/navigation-component#6b6e57fc940a34abbe4e3e9c2b919939df59d0d9",
- "from": "github:topcoder-platform/navigation-component#develop",
+ "version": "github:topcoder-platform/navigation-component#b44259da14c0452606cc5abe15f10eea7e31f0e5",
+ "from": "github:topcoder-platform/navigation-component#v1000.1.7",
"requires": {
"classnames": "^2.2.6",
"lodash": "^4.17.11",
diff --git a/src/shared/components/Header/index.jsx b/src/shared/components/Header/index.jsx
index 450742f8d7..c8e2e2d6f8 100644
--- a/src/shared/components/Header/index.jsx
+++ b/src/shared/components/Header/index.jsx
@@ -123,6 +123,7 @@ Header.propTypes = {
profile: PT.shape({
photoURL: PT.string,
handle: PT.string,
+ email: PT.string,
}),
auth: PT.shape(),
notifications: PT.arrayOf(PT.object).isRequired,
diff --git a/src/shared/components/tc-communities/Header/index.jsx b/src/shared/components/tc-communities/Header/index.jsx
index ff60ef6167..b9387978c8 100644
--- a/src/shared/components/tc-communities/Header/index.jsx
+++ b/src/shared/components/tc-communities/Header/index.jsx
@@ -72,18 +72,28 @@ function Header(props) {
}
let userSubMenu;
+
if (profile) {
+ let profileLink = `${meta ? _.replace(BASE_URL, 'www', meta.subdomains[0]) : BASE_URL}/members/${normalizedProfile.handle}`;
+ let paymentsLink = `${config.URL.COMMUNITY}/PactsMemberServlet?module=PaymentHistory&full_list=false`;
+
+ // Handle Wipro specific links (PS-257)
+ if (profile && profile.email && profile.email.includes('@wipro.com')) {
+ profileLink = 'https://topgear-app.wipro.com/user-details';
+ paymentsLink = 'https://topgear-app.wipro.com/my_payments';
+ }
+
userSubMenu = {
title: 'User',
items: [{
enforceA: true,
icon: ,
- link: `${meta ? _.replace(BASE_URL, 'www', meta.subdomains[0]) : BASE_URL}/members/${normalizedProfile.handle}`,
+ link: profileLink,
title: 'My Profile',
}, {
openNewTab: true,
icon: ,
- link: `${config.URL.COMMUNITY}/PactsMemberServlet?module=PaymentHistory&full_list=false`,
+ link: paymentsLink,
title: 'Payments',
}, {
icon: ,
@@ -385,6 +395,7 @@ Header.propTypes = {
photoURL: PT.string,
groups: PT.any,
handle: PT.string,
+ email: PT.string,
}),
theme: PT.shape().isRequired,
logoutRedirect: PT.string,