File tree Expand file tree Collapse file tree
x-pack/plugins/synthetics/public/legacy_uptime
components/overview/query_bar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const SAMPLE_ES_FILTERS = `{"bool":{"should":[{"match_phrase":{"monitor.id":"Nod
2121describe . skip ( 'useQueryBar' , ( ) => {
2222 let DEFAULT_URL_PARAMS : UptimeUrlParams ;
2323 let wrapper : any ;
24- let useUrlParamsSpy : jest . SpyInstance < [ URL . AsyncLinkCardParams , URL . UpdateUrlParams ] > ;
24+ let useUrlParamsSpy : jest . SpyInstance < [ URL . GetUrlParams , URL . UpdateUrlParams ] > ;
2525 let useGetUrlParamsSpy : jest . SpyInstance < UptimeUrlParams > ;
2626 let updateUrlParamsMock : jest . Mock ;
2727 let useUpdateKueryStringSpy : jest . SpyInstance ;
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ import { setSelectedFilters } from '../state/actions/selected_filters';
1515import { getFiltersFromMap } from './use_selected_filters' ;
1616import { getParsedParams } from '../lib/helper/parse_search' ;
1717
18- export type AsyncLinkCardParams = ( ) => UptimeUrlParams ;
18+ export type GetUrlParams = ( ) => UptimeUrlParams ;
1919export type UpdateUrlParams = ( updatedParams : {
2020 [ key : string ] : string | number | boolean | undefined ;
2121} ) => void ;
2222
23- export type UptimeUrlParamsHook = ( ) => [ AsyncLinkCardParams , UpdateUrlParams ] ;
23+ export type UptimeUrlParamsHook = ( ) => [ GetUrlParams , UpdateUrlParams ] ;
2424
25- export const useGetUrlParams : AsyncLinkCardParams = ( ) => {
25+ export const useGetUrlParams : GetUrlParams = ( ) => {
2626 const { search } = useLocation ( ) ;
2727
2828 return getSupportedUrlParams ( getParsedParams ( search ) ) ;
You can’t perform that action at this time.
0 commit comments