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

CORE-287 Modify EARN app to only show My Gigs #235

Merged
merged 3 commits into from
Feb 7, 2024
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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ workflows:
branches:
only:
- dev
- CORE-287

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
24 changes: 1 addition & 23 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Main App component
*/
import React, { useLayoutEffect, useEffect, useRef } from "react";
import { Router, useLocation, Redirect } from "@reach/router";
import { Router, useLocation } from "@reach/router";
import { disableSidebarForRoute } from "@topcoder/mfe-header";
import _ from "lodash";
import { usePreviousLocation } from "./utils/hooks";
Expand Down Expand Up @@ -39,33 +39,11 @@ const App = () => {
{menuVisible &&
ReactDOM.createPortal(<Menu />, document.querySelector("#menu-id"))}
<Router>
<Parcel
path="/earn/find/challenges/*"
config={() =>
System.import("@topcoder/micro-frontends-challenges-app")
}
/>
<Parcel
path="/earn/gigs/:externalId/apply"
view="gig-apply"
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
/>
<Parcel
path="/earn/gigs/:externalId"
view="gig-details"
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
/>
<Parcel
path="/earn/gigs"
view="gigs"
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
/>
<Parcel
path="/earn/my-gigs"
view="my-gigs"
config={() => System.import("@topcoder/micro-frontends-gigs-app")}
/>
<Redirect from="/earn/*" to="/earn/find/challenges/" noThrow />
</Router>
</>
);
Expand Down
15 changes: 0 additions & 15 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,5 @@ export const NAV_MENU = {
},
],
},
{
name: "Find Work",
icon: "find-work.svg",
iconActive: "find-work-green.svg",
children: [
{
name: "Gigs",
path: "/earn/gigs",
},
{
name: "Challenges",
path: "/earn/find/challenges",
},
],
},
],
};
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy