Skip to content

Commit 0374dc3

Browse files
committed
Fix type errors.
1 parent 525d62c commit 0374dc3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugins/uptime/public/hooks/use_breadcrumbs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import { ChromeBreadcrumb } from 'kibana/public';
88
import { i18n } from '@kbn/i18n';
99
import { useEffect } from 'react';
10+
import { EuiBreadcrumb } from '@elastic/eui';
1011
import { UptimeUrlParams } from '../lib/helper';
1112
import { stringifyUrlParams } from '../lib/helper/stringify_url_params';
1213
import { useKibana } from '../../../../../src/plugins/kibana_react/public';
@@ -17,7 +18,7 @@ export const makeBaseBreadcrumb = (
1718
href: string,
1819
navigateToHref?: (url: string) => Promise<void>,
1920
params?: UptimeUrlParams
20-
): ChromeBreadcrumb => {
21+
): EuiBreadcrumb => {
2122
if (params) {
2223
const crumbParams: Partial<UptimeUrlParams> = { ...params };
2324
// We don't want to encode this values because they are often set to Date.now(), the relative
@@ -31,7 +32,7 @@ export const makeBaseBreadcrumb = (
3132
defaultMessage: 'Uptime',
3233
}),
3334
href,
34-
onClick: (event: MouseEvent) => {
35+
onClick: (event) => {
3536
if (href && navigateToHref) {
3637
event.preventDefault();
3738
navigateToHref(href);

0 commit comments

Comments
 (0)