File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ import { useUpdateRfmSettings } from "../../queries/doppler-legacy-queries";
55import { useGetIntegrationStatus } from "../../queries/integrations-api-queries" ;
66import Button from "../ui/Button" ;
77import { LoadingScreen } from "../application" ;
8- import { hideNavBar } from "../../utils" ;
9-
10- hideNavBar ( ) ;
118
129export const RFM = ( { integration, idThirdPartyApp } ) => {
1310 const intl = useIntl ( ) ;
@@ -28,6 +25,11 @@ export const RFM = ({ integration, idThirdPartyApp }) => {
2825 period : 120 ,
2926 } ) ;
3027
28+ useEffect ( ( ) => {
29+ window . displayDopplerNavBar ( false ) ;
30+ window . parent . postMessage ( { type : "rfmReady" } , "*" ) ;
31+ } , [ ] ) ;
32+
3133 const { mutate : updateRfmSettings , isLoading : updatingMutation } =
3234 useUpdateRfmSettings ( ) ;
3335
Original file line number Diff line number Diff line change @@ -78,12 +78,3 @@ export const sanitizeDateStringToIsoFormat = (dateString: string) => {
7878
7979export const capitalize = ( text : string ) : string =>
8080 text ? text . charAt ( 0 ) . toUpperCase ( ) + text . slice ( 1 ) : "" ;
81-
82- export function hideNavBar ( ) : void {
83- const intervalId = setInterval ( ( ) => {
84- if ( window . displayDopplerNavBar ) {
85- window . displayDopplerNavBar ( false ) ;
86- clearInterval ( intervalId ) ;
87- }
88- } , 50 ) ;
89- }
You can’t perform that action at this time.
0 commit comments