Use ActiveTab type for custom hook

pull/86011/head
Tom Ratcliffe 1 year ago committed by Tom Ratcliffe
parent ccaf850c09
commit ce5fc59d54
  1. 2
      public/app/features/alerting/unified/components/contact-points/ContactPoints.tsx

@ -81,7 +81,7 @@ const useTabQueryParam = () => {
return queryParam || ActiveTab.ContactPoints;
}, [queryParams]);
const setParam = (tab: string) => setQueryParams({ tab });
const setParam = (tab: ActiveTab) => setQueryParams({ tab });
return [param, setParam] as const;
};

Loading…
Cancel
Save