From 1ae777129087dcb42f71e599da11f5e8418fab61 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Wed, 29 May 2024 03:27:53 +0530 Subject: [PATCH] add spacing in general, minor change --- frontend/src/modals/ConfirmationModal.tsx | 5 +++-- frontend/src/settings/General.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/modals/ConfirmationModal.tsx b/frontend/src/modals/ConfirmationModal.tsx index c5b4cf49..0b39440b 100644 --- a/frontend/src/modals/ConfirmationModal.tsx +++ b/frontend/src/modals/ConfirmationModal.tsx @@ -1,6 +1,6 @@ import Exit from '../assets/exit.svg'; import { ActiveState } from '../models/misc'; - +import { useTranslation } from 'react-i18next'; function ConfirmationModal({ message, modalState, @@ -18,6 +18,7 @@ function ConfirmationModal({ cancelLabel?: string; handleCancel?: () => void; }) { + const { t } = useTranslation(); return (
- {cancelLabel ? cancelLabel : 'Cancel'} + {cancelLabel ? cancelLabel : t('cancel')} diff --git a/frontend/src/settings/General.tsx b/frontend/src/settings/General.tsx index 155a7fc6..2c894c92 100644 --- a/frontend/src/settings/General.tsx +++ b/frontend/src/settings/General.tsx @@ -84,7 +84,7 @@ const General: React.FC = () => { />
-

+

{t('settings.general.selectLanguage')}