File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
x-pack/plugins/uptime/public/hooks Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77import { ChromeBreadcrumb } from 'kibana/public' ;
88import { i18n } from '@kbn/i18n' ;
99import { useEffect } from 'react' ;
10+ import { EuiBreadcrumb } from '@elastic/eui' ;
1011import { UptimeUrlParams } from '../lib/helper' ;
1112import { stringifyUrlParams } from '../lib/helper/stringify_url_params' ;
1213import { 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 ) ;
You can’t perform that action at this time.
0 commit comments