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

Commit 3bcacde

Browse files
committed
set notification platform to 'taas'
1 parent daeeb06 commit 3bcacde

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/root.component.jsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import React from "react";
1+
import React, { useLayoutEffect } from "react";
22
import { Provider } from "react-redux";
33
import { Router, Redirect } from "@reach/router";
4+
import { setNotificationPlatform, PLATFORM } from "@topcoder/micro-frontends-navbar-app";
45
import MyTeamsList from "./routes/MyTeamsList";
56
import MyTeamsDetails from "./routes/MyTeamsDetails";
67
import PositionDetails from "./routes/PositionDetails";
@@ -21,6 +22,10 @@ import "./styles/main.vendor.scss";
2122
import styles from "./styles/main.module.scss";
2223

2324
export default function Root() {
25+
useLayoutEffect(() => {
26+
setNotificationPlatform(PLATFORM.TAAS);
27+
}, []);
28+
2429
return (
2530
<div className={styles["topcoder-micro-frontends-teams-app"]}>
2631
<Provider store={store}>

0 commit comments

Comments
 (0)