Skip to content

Commit 1b512f3

Browse files
authored
Merge pull request topcoder-archive#97 from nqviet/dev
fix for issue taas-apis/issues/477
2 parents 765a616 + 2b613d0 commit 1b512f3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 6 additions & 1 deletion
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 (

0 commit comments

Comments
 (0)