diff --git a/frontend/src/components/configCommon.tsx b/frontend/src/components/configCommon.tsx index feaf5b3..9deab6a 100644 --- a/frontend/src/components/configCommon.tsx +++ b/frontend/src/components/configCommon.tsx @@ -24,7 +24,7 @@ export function CommonFields({ }} /> -
+
{draft.ntfy && ( - <> -
-
- - { - setDraft((prev) => ({ - ...prev, - ntfy: { - ...(prev.ntfy || newNtfyConfig()), - url: - event.target.value === "" - ? defaultNtfyUrl - : event.target.value, - }, - })); - }} - /> -
+
+
+ + { + setDraft((prev) => ({ + ...prev, + ntfy: { + ...(prev.ntfy || newNtfyConfig()), + url: + event.target.value === "" + ? defaultNtfyUrl + : event.target.value, + }, + })); + }} + /> +
-
- - { - setDraft((prev) => ({ - ...prev, - ntfy: { - ...(prev.ntfy || newNtfyConfig()), - topic: event.target.value, - }, - })); - }} - /> -
+
+ + { + setDraft((prev) => ({ + ...prev, + ntfy: { + ...(prev.ntfy || newNtfyConfig()), + topic: event.target.value, + }, + })); + }} + />
-
-
- +
+ + { + setDraft((prev) => ({ + ...prev, + ntfy: { + ...(prev.ntfy || newNtfyConfig()), + username: event.target.value, + }, + })); + }} + /> +
+ +
+ +
{ setDraft((prev) => ({ ...prev, ntfy: { ...(prev.ntfy || newNtfyConfig()), - username: event.target.value, + password: event.target.value, }, })); }} /> -
- -
- -
- { - setDraft((prev) => ({ - ...prev, - ntfy: { - ...(prev.ntfy || newNtfyConfig()), - password: event.target.value, - }, - })); - }} - /> - -
+
- +
)}