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

Commit 382e332

Browse files
Hot fix disable gigs (#193)
* remove path * restore url * directo to gigs
1 parent 88a2adb commit 382e332

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

config/default.js

Lines changed: 3 additions & 0 deletions
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
};

config/prod.js

Lines changed: 3 additions & 0 deletions
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
};

src/constants/index.js

Lines changed: 1 addition & 1 deletion
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",

src/containers/Menu/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ const MenuContainer = () => {
2626
);
2727
if (name) {
2828
setSelectedMenuItemName(name);
29+
if (name == "Gigs") {
30+
window.location.href = `${process.env.URL.BASE}/gigs`;
31+
}
2932
} else {
3033
setSelectedMenuItemName(null);
3134
}

0 commit comments

Comments
 (0)