Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 7210635

Browse files
Disable the Gigs Link (#197)
* re-direct to gigs
1 parent 1b40c0e commit 7210635

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

Diff for: config/default.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ module.exports = {
66
"https://platform.topcoder-dev.com/challenges-app/topcoder-micro-frontends-challenges-app.js",
77
"@topcoder/micro-frontends-gigs-app":
88
"https://platform.topcoder-dev.com/gigs-app/topcoder-micro-frontends-gigs-app.js",
9+
},
10+
URL: {
11+
BASE: "https://www.topcoder-dev.com",
912
}
1013
};

Diff for: config/prod.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ module.exports = {
22
MFE_CONFIG: {
33
'@topcoder/micro-frontends-challenges-app': 'https://platform.topcoder.com/challenges-app/topcoder-micro-frontends-challenges-app.js',
44
'@topcoder/micro-frontends-gigs-app': 'https://platform.topcoder.com/gigs-app/topcoder-micro-frontends-gigs-app.js',
5+
},
6+
URL: {
7+
BASE: "https://www.topcoder.com",
58
}
69
};

Diff for: src/components/Menu/index.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const Menu = ({ menu, selected, onSelect, isLoggedIn, onUpdateMenu }) => {
3434

3535
const onSelectMenuItem = (name, path) => {
3636
selectionRef.current.select(name);
37+
if (name == "Gigs") {
38+
window.location.href = `${process.env.URL.BASE}/gigs`;
39+
}
3740
if (path) {
3841
navigate(path);
3942
}

Diff for: src/constants/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const NAV_MENU = {
2020
children: [
2121
{
2222
name: "Gigs",
23-
path: "/earn/gigs",
23+
path: "",
2424
},
2525
{
2626
name: "Challenges",

0 commit comments

Comments
 (0)