Skip to content

Commit

Permalink
(fix) fix interface naming
Browse files Browse the repository at this point in the history
  • Loading branch information
usamaidrsk committed Sep 23, 2024
1 parent 014ab66 commit ffe7d3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { type FetchResponse, fhirBaseUrl, openmrsFetch, useDebounce } from '@ope
import { type LocationEntry, type LocationResponse } from '@openmrs/esm-service-queues-app/src/types';
import useSWR from 'swr';

interface IUseLocations {
interface UseLocationsResult {
locations: Array<LocationEntry>;
isLoading: boolean;
loadingNewData: boolean;
}

export function useLocations(locationTag: string | null, searchQuery: string = ''): IUseLocations {
export function useLocations(locationTag: string | null, searchQuery: string = ''): UseLocationsResult {
const debouncedSearchQuery = useDebounce(searchQuery);

const constructUrl = useMemo(() => {
Expand Down

0 comments on commit ffe7d3c

Please sign in to comment.