diff --git a/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx b/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx index ebca91cf88237..f82207fcb925e 100644 --- a/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx +++ b/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx @@ -38,7 +38,7 @@ const BUTTON_ADD_DATA = i18n.translate('xpack.securitySolution.globalHeader.butt */ export const GlobalHeader = React.memo(() => { const portalNode = useMemo(() => createHtmlPortalNode(), []); - const { setHeaderActionMenu, ...startServices } = useKibana().services; + const { theme, setHeaderActionMenu, i18n: kibanaServiceI18n } = useKibana().services; const { pathname } = useLocation(); const getTimeline = useMemo(() => timelineSelectors.getTimelineByIdSelector(), []); @@ -55,7 +55,10 @@ export const GlobalHeader = React.memo(() => { useEffect(() => { if (setHeaderActionMenu) { setHeaderActionMenu((element) => { - const mount = toMountPoint(, startServices); + const mount = toMountPoint(, { + theme, + i18n: kibanaServiceI18n, + }); return mount(element); }); @@ -68,7 +71,7 @@ export const GlobalHeader = React.memo(() => { setHeaderActionMenu(undefined); }; } - }, [portalNode, setHeaderActionMenu, dashboardViewPath, startServices]); + }, [portalNode, setHeaderActionMenu, theme, kibanaServiceI18n, dashboardViewPath]); return (