From b68ddc2843af651b61fe51e10208b9cd9d89ea9b Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 22 Mar 2022 12:16:02 +0100 Subject: [PATCH] put focus on the right field (#2296) fixes translation keys as well fixes: #1180 --- src/realm-settings/AddMessageBundleModal.tsx | 25 ++++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/realm-settings/AddMessageBundleModal.tsx b/src/realm-settings/AddMessageBundleModal.tsx index 72db99c3c6..fd57ce88b6 100644 --- a/src/realm-settings/AddMessageBundleModal.tsx +++ b/src/realm-settings/AddMessageBundleModal.tsx @@ -29,14 +29,14 @@ export const AddMessageBundleModal = ({ handleModalToggle, save, }: AddMessageBundleModalProps) => { - const { t } = useTranslation("groups"); + const { t } = useTranslation("realm-settings"); const { register, errors, handleSubmit } = useForm(); return (
@@ -80,29 +80,28 @@ export const AddMessageBundleModal = ({ id="add-key" name="key" validated={ - errors.email ? ValidatedOptions.error : ValidatedOptions.default + errors.key ? ValidatedOptions.error : ValidatedOptions.default } />