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

Hot fix disable gigs #194

Merged
merged 4 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ module.exports = {
"https://platform.topcoder-dev.com/challenges-app/topcoder-micro-frontends-challenges-app.js",
"@topcoder/micro-frontends-gigs-app":
"https://platform.topcoder-dev.com/gigs-app/topcoder-micro-frontends-gigs-app.js",
},
URL: {
BASE: "https://www.topcoder-dev.com",
}
};
3 changes: 3 additions & 0 deletions config/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ module.exports = {
MFE_CONFIG: {
'@topcoder/micro-frontends-challenges-app': 'https://platform.topcoder.com/challenges-app/topcoder-micro-frontends-challenges-app.js',
'@topcoder/micro-frontends-gigs-app': 'https://platform.topcoder.com/gigs-app/topcoder-micro-frontends-gigs-app.js',
},
URL: {
BASE: "https://www.topcoder.com",
}
};
3 changes: 3 additions & 0 deletions src/components/Menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const Menu = ({ menu, selected, onSelect, isLoggedIn, onUpdateMenu }) => {

const onSelectMenuItem = (name, path) => {
selectionRef.current.select(name);
if (name == "Gigs") {
window.location.href = `${process.env.URL.BASE}/gigs`;
}
if (path) {
navigate(path);
}
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const NAV_MENU = {
children: [
{
name: "Gigs",
path: "/earn/gigs",
path: "",
},
{
name: "Challenges",
Expand Down