Skip to content

Commit

Permalink
Add wipro flag for navigation PS-257
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Apr 23, 2024
1 parent 2e565d9 commit 44b23f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
2 changes: 2 additions & 0 deletions src/shared/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
</div>
Expand All @@ -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,
Expand Down

0 comments on commit 44b23f1

Please sign in to comment.