Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Apr 14, 2020
1 parent 8b5182d commit 72e1c5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { uiQueryParams, detailsData, detailsError, showView } from '../../../sto
import { HostDetails } from './host_details';
import { PolicyResponse } from './policy_response';
import { HostMetadata } from '../../../../../../common/types';
import { FlyoutSubHeader } from './components/flyout_sub_header';
import { FlyoutSubHeader, FlyoutSubHeaderProps } from './components/flyout_sub_header';

export const HostDetailsFlyout = memo(() => {
const history = useHistory();
Expand Down Expand Up @@ -94,7 +94,7 @@ const PolicyResponseFlyoutPanel = memo<{
}>(({ hostMeta }) => {
const history = useHistory();
const { show, ...queryParams } = useHostListSelector(uiQueryParams);
const backButtonProp = useMemo(() => {
const backButtonProp = useMemo((): FlyoutSubHeaderProps['backButton'] => {
const detailsUri = urlFromQueryParams({
...queryParams,
selected_host: hostMeta.host.id,
Expand Down

0 comments on commit 72e1c5e

Please sign in to comment.