From b6dfd3321ab9a0a1dd1888a28bd836b8f0876729 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 24 Aug 2023 20:35:01 +0100 Subject: [PATCH] Updates hook to allow for array of job IDs --- src/hooks/motherOfAllHooks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/motherOfAllHooks.ts b/src/hooks/motherOfAllHooks.ts index fae8b16..e807131 100644 --- a/src/hooks/motherOfAllHooks.ts +++ b/src/hooks/motherOfAllHooks.ts @@ -7,11 +7,11 @@ import { AddressType } from 'utils/address-type-checker'; interface UseIpAddressProps { // Unique identifier for this job type - jobId: string; + jobId: string | string[]; // The actual fetch request fetchRequest: () => Promise; // Function to call to update the loading state in parent - updateLoadingJobs: (job: string, newState: LoadingState, error?: string, retry?: (data?: any) => void | null, data?: any) => void; + updateLoadingJobs: (job: string | string[], newState: LoadingState, error?: string, retry?: (data?: any) => void | null, data?: any) => void; addressInfo: { // The hostname/ip address that we're checking address: string | undefined;