style: run prettier on notification create page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
97353bc7d2
commit
cc1b6df8f2
1 file changed
+29
-25
@@ -147,30 +147,32 @@ const NotificationsCreatePage = () => {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{watchedType !== "matrix" && watchedType !== "telegram" && watchedType !== "pushover" && (
|
{watchedType !== "matrix" &&
|
||||||
<ConfigBox
|
watchedType !== "telegram" &&
|
||||||
title={addressConfig.title}
|
watchedType !== "pushover" && (
|
||||||
subtitle={addressConfig.description}
|
<ConfigBox
|
||||||
rightContent={
|
title={addressConfig.title}
|
||||||
<Controller
|
subtitle={addressConfig.description}
|
||||||
name="address"
|
rightContent={
|
||||||
control={control}
|
<Controller
|
||||||
defaultValue={"address" in defaults ? defaults.address : ""}
|
name="address"
|
||||||
render={({ field, fieldState }) => (
|
control={control}
|
||||||
<TextField
|
defaultValue={"address" in defaults ? defaults.address : ""}
|
||||||
{...field}
|
render={({ field, fieldState }) => (
|
||||||
type="text"
|
<TextField
|
||||||
fieldLabel={addressConfig.fieldLabel}
|
{...field}
|
||||||
placeholder={addressConfig.placeholder}
|
type="text"
|
||||||
fullWidth
|
fieldLabel={addressConfig.fieldLabel}
|
||||||
error={!!fieldState.error}
|
placeholder={addressConfig.placeholder}
|
||||||
helperText={fieldState.error?.message ?? ""}
|
fullWidth
|
||||||
/>
|
error={!!fieldState.error}
|
||||||
)}
|
helperText={fieldState.error?.message ?? ""}
|
||||||
/>
|
/>
|
||||||
}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{watchedType === "telegram" && (
|
{watchedType === "telegram" && (
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title={t("pages.notifications.form.telegram.title")}
|
title={t("pages.notifications.form.telegram.title")}
|
||||||
@@ -247,7 +249,9 @@ const NotificationsCreatePage = () => {
|
|||||||
{...field}
|
{...field}
|
||||||
type="text"
|
type="text"
|
||||||
fieldLabel={t("pages.notifications.form.pushover.optionUserKey")}
|
fieldLabel={t("pages.notifications.form.pushover.optionUserKey")}
|
||||||
placeholder={t("pages.notifications.form.pushover.placeholderUserKey")}
|
placeholder={t(
|
||||||
|
"pages.notifications.form.pushover.placeholderUserKey"
|
||||||
|
)}
|
||||||
fullWidth
|
fullWidth
|
||||||
error={!!fieldState.error}
|
error={!!fieldState.error}
|
||||||
helperText={fieldState.error?.message ?? ""}
|
helperText={fieldState.error?.message ?? ""}
|
||||||
|
|||||||
Reference in new issue
Block a user