Skip to content

Commit

Permalink
Fix type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Sep 2, 2020
1 parent 525d62c commit 0374dc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x-pack/plugins/uptime/public/hooks/use_breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { ChromeBreadcrumb } from 'kibana/public';
import { i18n } from '@kbn/i18n';
import { useEffect } from 'react';
import { EuiBreadcrumb } from '@elastic/eui';
import { UptimeUrlParams } from '../lib/helper';
import { stringifyUrlParams } from '../lib/helper/stringify_url_params';
import { useKibana } from '../../../../../src/plugins/kibana_react/public';
Expand All @@ -17,7 +18,7 @@ export const makeBaseBreadcrumb = (
href: string,
navigateToHref?: (url: string) => Promise<void>,
params?: UptimeUrlParams
): ChromeBreadcrumb => {
): EuiBreadcrumb => {
if (params) {
const crumbParams: Partial<UptimeUrlParams> = { ...params };
// We don't want to encode this values because they are often set to Date.now(), the relative
Expand All @@ -31,7 +32,7 @@ export const makeBaseBreadcrumb = (
defaultMessage: 'Uptime',
}),
href,
onClick: (event: MouseEvent) => {
onClick: (event) => {
if (href && navigateToHref) {
event.preventDefault();
navigateToHref(href);
Expand Down

0 comments on commit 0374dc3

Please sign in to comment.