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

Commit a6def7c

Browse files
committed
Added redirect to /taas-admin/work-periods
1 parent 5ce23f5 commit a6def7c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/components/Sidebar/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ Sidebar.propTypes = {
2828
};
2929

3030
const NAV_ITEMS = [
31-
{ icon: WorkPeriods, label: "Working Periods", path: APP_BASE_PATH },
31+
{
32+
icon: WorkPeriods,
33+
label: "Working Periods",
34+
path: `${APP_BASE_PATH}/work-periods`,
35+
},
3236
{
3337
icon: Freelancers,
3438
label: "Freelancers",

src/root.component.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useLayoutEffect } from "react";
22
import { Provider } from "react-redux";
3-
import { Router } from "@reach/router";
3+
import { Router, Redirect } from "@reach/router";
44
import ReduxToastr from "react-redux-toastr";
55
import store from "store";
66
import { disableSidebarForRoute } from "@topcoder/micro-frontends-navbar-app";
@@ -17,7 +17,12 @@ export default function Root() {
1717
return (
1818
<Provider store={store}>
1919
<Router>
20-
<WorkPeriods path={APP_BASE_PATH} />
20+
<Redirect
21+
from={APP_BASE_PATH}
22+
to={`${APP_BASE_PATH}/work-periods`}
23+
exact
24+
/>
25+
<WorkPeriods path={`${APP_BASE_PATH}/work-periods`} />
2126
<Freelancers path={`${APP_BASE_PATH}/freelancers`} />
2227
</Router>
2328
{/* <ReduxToastr

0 commit comments

Comments
 (0)