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

Commit 72bc207

Browse files
authored
Merge branch 'topcoder-platform:dev' into dev
2 parents a401de6 + dcdd3c0 commit 72bc207

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

src/decls/micro-frontends-navbar-app.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ declare module "@topcoder/micro-frontends-navbar-app" {
88
export const setAppMenu: (route: string, obj: Record<string, any>) => void;
99
export const login: () => void;
1010
export const logout: () => void;
11+
export const setNotificationPlatform: (platform: string) => void
12+
export const PLATFORM: {[key: string]: string};
1113
}

src/root.component.jsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import React, { useLayoutEffect } from "react";
22
import { Provider } from "react-redux";
33
import { Router, Redirect } from "@reach/router";
44
import store from "store";
5-
import { disableSidebarForRoute } from "@topcoder/micro-frontends-navbar-app";
5+
import {
6+
disableSidebarForRoute,
7+
setNotificationPlatform,
8+
PLATFORM,
9+
} from "@topcoder/micro-frontends-navbar-app";
610
import WorkPeriods from "routes/WorkPeriods";
711
import Freelancers from "routes/Freelancers";
812
import Roles from "routes/Roles";
@@ -17,6 +21,7 @@ import "styles/global.scss";
1721
export default function Root() {
1822
useLayoutEffect(() => {
1923
disableSidebarForRoute(`${APP_BASE_PATH}/*`);
24+
setNotificationPlatform(PLATFORM.TAAS);
2025
}, []);
2126

2227
return (

src/routes/Roles/components/RoleForm/index.jsx

+12-12
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,18 @@ function RoleForm() {
7272
rates: [
7373
...roleState.rates,
7474
{
75-
global: 10,
76-
inCountry: 10,
77-
offShore: 10,
78-
niche: 10,
79-
rate30Niche: 10,
80-
rate30Global: 10,
81-
rate30InCountry: 10,
82-
rate30OffShore: 10,
83-
rate20Niche: 10,
84-
rate20Global: 10,
85-
rate20InCountry: 10,
86-
rate20OffShore: 10,
75+
global: 1000,
76+
inCountry: 1000,
77+
offShore: 1000,
78+
niche: 1000,
79+
rate30Niche: 1000,
80+
rate30Global: 1000,
81+
rate30InCountry: 1000,
82+
rate30OffShore: 1000,
83+
rate20Niche: 1000,
84+
rate20Global: 1000,
85+
rate20InCountry: 1000,
86+
rate20OffShore: 1000,
8787
},
8888
],
8989
})

0 commit comments

Comments
 (0)