From 44b23f1fc9578f1c5cc666cc87e8bb26a9511f98 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Tue, 23 Apr 2024 22:58:38 +0000 Subject: [PATCH] Add wipro flag for navigation PS-257 --- config/default.js | 2 ++ src/shared/components/Header/index.jsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/default.js b/config/default.js index 37cf1664c7..e17fe0499e 100644 --- a/config/default.js +++ b/config/default.js @@ -311,11 +311,13 @@ module.exports = { id: 'myprofile', title: 'My Profile', href: '/members/willFilledByUserName', + wipro_href: 'https://topgear-app.wipro.com/user-details', logged: true, }, { title: 'Payments', href: 'https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false', + wipro_href: 'https://topgear-app.wipro.com/my_payments', logged: true, openNewTab: true, }, diff --git a/src/shared/components/Header/index.jsx b/src/shared/components/Header/index.jsx index 450742f8d7..72a5e99583 100644 --- a/src/shared/components/Header/index.jsx +++ b/src/shared/components/Header/index.jsx @@ -104,6 +104,7 @@ const Header = ({ setOpenMore={handleChangeOpenMore} loggedIn={!_.isEmpty(profile)} profileHandle={profile ? profile.handle : ''} + isWipro={(profile && profile.email && profile.email.includes('@wipro.com'))} tracking={tracking} /> @@ -123,6 +124,7 @@ Header.propTypes = { profile: PT.shape({ photoURL: PT.string, handle: PT.string, + email: PT.string, }), auth: PT.shape(), notifications: PT.arrayOf(PT.object).isRequired,