Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
semd committed May 19, 2023
1 parent 71c145d commit a13a6d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import React from 'react';
import { useObservable } from 'react-use';
import { i18n } from '@kbn/i18n';
import type { KibanaPageTemplateProps } from '@kbn/shared-ux-page-kibana-template';
import { useKibana } from '../../../lib/kibana';
import { useBreadcrumbs } from '../breadcrumbs';
import { SecuritySideNav } from '../security_side_nav';
Expand All @@ -22,7 +23,7 @@ const translatedNavTitle = i18n.translate('xpack.securitySolution.navigation.mai
defaultMessage: 'Security',
});

export const useSecuritySolutionNavigation = () => {
export const useSecuritySolutionNavigation = (): KibanaPageTemplateProps['solutionNav'] => {
const { isSidebarEnabled$ } = useKibana().services;
const isSidebarEnabled = useObservable(isSidebarEnabled$);

Expand Down

0 comments on commit a13a6d2

Please sign in to comment.