From f94a39199d87a2de12df28871327bfa5e5aa4419 Mon Sep 17 00:00:00 2001 From: Emily Jablonski <65367387+emilyjablonski@users.noreply.github.com> Date: Mon, 6 Nov 2023 08:58:14 -0700 Subject: [PATCH] fix: incorporate latest design feedback (#134) --- src/helpers/preferences.tsx | 203 ++++++++++++++++++------------------ 1 file changed, 102 insertions(+), 101 deletions(-) diff --git a/src/helpers/preferences.tsx b/src/helpers/preferences.tsx index e5aab5a..5a6b15c 100644 --- a/src/helpers/preferences.tsx +++ b/src/helpers/preferences.tsx @@ -3,7 +3,7 @@ import { UseFormMethods } from "react-hook-form" import { t, GridSection, ViewItem, GridCell, Field, Select, resolveObject } from "../../" type FormAddressProps = { - subtitle: string + subtitle?: string dataKey: string enableMailCheckbox?: boolean register: UseFormMethods["register"] @@ -23,110 +23,111 @@ export const FormAddress = ({ }: FormAddressProps) => { return ( <> - - - - - - - - - - - - - - - - - +
+ + {!subtitle ? t("application.preferences.options.address") : subtitle} + + + + + + + + + + + + - - - + - {enableMailCheckbox && ( - - + + + - )} - + + {enableMailCheckbox && ( + + + + )} + +
) }