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

fix for issue taas-apis/issues/477 #97

Merged
merged 1 commit into from
Aug 13, 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
2 changes: 2 additions & 0 deletions src/decls/micro-frontends-navbar-app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ declare module "@topcoder/micro-frontends-navbar-app" {
export const setAppMenu: (route: string, obj: Record<string, any>) => void;
export const login: () => void;
export const logout: () => void;
export const setNotificationPlatform: (platform: string) => void
export const PLATFORM: {[key: string]: string};
}
7 changes: 6 additions & 1 deletion src/root.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import React, { useLayoutEffect } from "react";
import { Provider } from "react-redux";
import { Router, Redirect } from "@reach/router";
import store from "store";
import { disableSidebarForRoute } from "@topcoder/micro-frontends-navbar-app";
import {
disableSidebarForRoute,
setNotificationPlatform,
PLATFORM,
} from "@topcoder/micro-frontends-navbar-app";
import WorkPeriods from "routes/WorkPeriods";
import Freelancers from "routes/Freelancers";
import Roles from "routes/Roles";
Expand All @@ -17,6 +21,7 @@ import "styles/global.scss";
export default function Root() {
useLayoutEffect(() => {
disableSidebarForRoute(`${APP_BASE_PATH}/*`);
setNotificationPlatform(PLATFORM.TAAS);
}, []);

return (
Expand Down