fix(ui): reformat code

This commit is contained in:
Łukasz Mierzwa
2020-11-20 09:10:41 +00:00
committed by Łukasz Mierzwa
parent 4efca94a30
commit a3cade8ae5
2 changed files with 14 additions and 6 deletions

View File

@@ -22,9 +22,14 @@ const MatchCounter: FC<{
filters.push(AlertManagersToFilter(silenceFormStore.data.alertmanagers));
}
const { response, error, isLoading, isRetrying } = useFetchGet<
APIAlertsResponseT
>(FormatBackendURI("alerts.json?") + FormatAlertsQ(filters));
const {
response,
error,
isLoading,
isRetrying,
} = useFetchGet<APIAlertsResponseT>(
FormatBackendURI("alerts.json?") + FormatAlertsQ(filters)
);
return error ? (
<TooltipWrapper

View File

@@ -20,9 +20,12 @@ const SilenceSubmitProgress: FC<{
payload: AlertmanagerSilencePayloadT;
}> = ({ alertStore, silenceFormStore, cluster, members, payload }) => {
const [upstreams, setUpstreams] = useState<UpstreamT[]>([]);
const { response, error, inProgress, responseURI } = useFetchAny<
PostResponseT
>(upstreams);
const {
response,
error,
inProgress,
responseURI,
} = useFetchAny<PostResponseT>(upstreams);
const [publicURIs, setPublicURIs] = useState<{ [key: string]: string }>({});
useEffect(() => {