diff --git a/frontend/src/components/requests/RequestComposeModal.tsx b/frontend/src/components/requests/RequestComposeModal.tsx index 0cd9eefd..c8562575 100644 --- a/frontend/src/components/requests/RequestComposeModal.tsx +++ b/frontend/src/components/requests/RequestComposeModal.tsx @@ -36,6 +36,21 @@ type RequestComposeModalProps = { const allowedAttachmentExtensions = new Set(["pdf", "jpg", "jpeg", "png"]); +function FieldLabel({ + children, + required = false, +}: { + children: string; + required?: boolean; +}) { + return ( + + ); +} + export function RequestComposeModal({ actionError, busyKey, @@ -95,36 +110,34 @@ export function RequestComposeModal({ size="lg" className="h-[100dvh] max-w-full rounded-none sm:h-auto sm:rounded-2xl" footer={( -
-
-

- Черновик можно сохранить неполным. Для отправки нужны получатели и тип заявления. -

-
- - - -
+
+

+ * обязательны для отправки. Черновик можно сохранить неполным. +

+
+ + +
)} @@ -155,7 +168,7 @@ export function RequestComposeModal({
- + Тема setForm((prev) => ({ ...prev, title: event.target.value }))} @@ -187,7 +200,7 @@ export function RequestComposeModal({
- + Сообщение