fix: run format and fix build errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe242b1977
commit
a864bc0c05
3 files changed
+9
-4
No files matched your search
@@ -27,7 +27,10 @@ export const useNotificationForm = ({ data = null }: UseNotificationFormOptions
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
defaults = {
|
defaults = {
|
||||||
type: (data?.type || "email") as Exclude<Notification["type"], "matrix" | "telegram">,
|
type: (data?.type || "email") as Exclude<
|
||||||
|
Notification["type"],
|
||||||
|
"matrix" | "telegram"
|
||||||
|
>,
|
||||||
notificationName: data?.notificationName || "",
|
notificationName: data?.notificationName || "",
|
||||||
address: data?.address || "",
|
address: data?.address || "",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -186,7 +186,9 @@ const NotificationsCreatePage = () => {
|
|||||||
{...field}
|
{...field}
|
||||||
type="text"
|
type="text"
|
||||||
fieldLabel={t("pages.notifications.form.telegram.optionBotToken")}
|
fieldLabel={t("pages.notifications.form.telegram.optionBotToken")}
|
||||||
placeholder={t("pages.notifications.form.telegram.placeholderBotToken")}
|
placeholder={t(
|
||||||
|
"pages.notifications.form.telegram.placeholderBotToken"
|
||||||
|
)}
|
||||||
fullWidth
|
fullWidth
|
||||||
error={!!fieldState.error}
|
error={!!fieldState.error}
|
||||||
helperText={fieldState.error?.message ?? ""}
|
helperText={fieldState.error?.message ?? ""}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export class TelegramProvider implements INotificationProvider {
|
|||||||
service: SERVICE_NAME,
|
service: SERVICE_NAME,
|
||||||
method: "sendTestAlert",
|
method: "sendTestAlert",
|
||||||
stack: errStack,
|
stack: errStack,
|
||||||
error: errMsg,
|
details: { error: errMsg },
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ export class TelegramProvider implements INotificationProvider {
|
|||||||
service: SERVICE_NAME,
|
service: SERVICE_NAME,
|
||||||
method: "sendMessage",
|
method: "sendMessage",
|
||||||
stack: errStack,
|
stack: errStack,
|
||||||
error: errMsg,
|
details: { error: errMsg },
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user