mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-30 20:52:40 +00:00
remove loading state on the alert rule
This commit is contained in:
@@ -27,7 +27,9 @@ export default function EditAlertRulePage() {
|
|||||||
const { isPaidUser } = usePaidStatus();
|
const { isPaidUser } = usePaidStatus();
|
||||||
const isPaid = isPaidUser(tierMatrix.alertingRules);
|
const isPaid = isPaidUser(tierMatrix.alertingRules);
|
||||||
|
|
||||||
const [formValues, setFormValues] = useState<AlertRuleFormValues | null | undefined>(undefined);
|
const [formValues, setFormValues] = useState<
|
||||||
|
AlertRuleFormValues | null | undefined
|
||||||
|
>(undefined);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isNaN(alertRuleId)) {
|
if (isNaN(alertRuleId)) {
|
||||||
@@ -65,9 +67,6 @@ export default function EditAlertRulePage() {
|
|||||||
title={t("alertingEditRule")}
|
title={t("alertingEditRule")}
|
||||||
description={t("alertingRuleCredenzaDescription")}
|
description={t("alertingRuleCredenzaDescription")}
|
||||||
/>
|
/>
|
||||||
<div className="min-h-[12rem] flex items-center justify-center text-muted-foreground text-sm">
|
|
||||||
{t("loading")}
|
|
||||||
</div>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user