mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(ui): reformat code
This commit is contained in:
committed by
Łukasz Mierzwa
parent
4efca94a30
commit
a3cade8ae5
@@ -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
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user