diff --git a/app/ui/InfoBox.tsx b/app/ui/InfoBox.tsx index 7c92cb2..c101ee5 100644 --- a/app/ui/InfoBox.tsx +++ b/app/ui/InfoBox.tsx @@ -1,9 +1,23 @@ +import { ChevronDownIcon, ChevronUpIcon, QuestionMarkCircleIcon } from "@heroicons/react/24/outline"; +import { useTranslations } from "next-intl"; import { FC, ReactNode } from "react"; -export const InfoBox: FC<{ children: ReactNode, className?: string }> = ({ children, className }) => -
- - - - {children} -
\ No newline at end of file +export const InfoBox: FC<{ + children: ReactNode; + title?: string; +}> = ({ children, title }) => { + + const t = useTranslations("info-box"); + + return ( +
+ + {title ?? t("default-title")} + + + +
{children}
+
+ ) +} + diff --git a/app/ui/LocationEditForm.tsx b/app/ui/LocationEditForm.tsx index 185bc37..781812c 100644 --- a/app/ui/LocationEditForm.tsx +++ b/app/ui/LocationEditForm.tsx @@ -86,9 +86,9 @@ export const LocationEditForm: FC = ({ location, yearMont
- {t("tenant-payment-instructions-legend")} + {t("tenant-payment-instructions-legend")} - {t("tenant-payment-instructions-code-info")} + {t("tenant-payment-instructions-code-info")}
{t("tenant-payment-instructions-method--legend")} @@ -217,8 +217,8 @@ export const LocationEditForm: FC = ({ location, yearMont }
- {t("auto-utility-bill-forwarding-legend")} - {t("auto-utility-bill-forwarding-info")} + {t("auto-utility-bill-forwarding-legend")} + {t("auto-utility-bill-forwarding-info")}
- {t("auto-rent-notification-legend")} - {t("auto-rent-notification-info")} + {t("auto-rent-notification-legend")} + {t("auto-rent-notification-info")}