From 5727652a4d284480e232ebc41a13c2365a2249b1 Mon Sep 17 00:00:00 2001 From: Abhishek P Anil Date: Mon, 2 Sep 2024 11:48:24 +0530 Subject: [PATCH 1/3] chore: added data-cy attributes for tabs --- src/components/BilingualInput/BilingualInput.jsx | 4 ++-- src/pages/Dashboard/Settings/Settings.jsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/BilingualInput/BilingualInput.jsx b/src/components/BilingualInput/BilingualInput.jsx index c194cd8aa..7a127ce75 100644 --- a/src/components/BilingualInput/BilingualInput.jsx +++ b/src/components/BilingualInput/BilingualInput.jsx @@ -52,7 +52,7 @@ function BilingualInput(props) { const items = [ { - label: labelFr, + label: {labelFr}, key: 'fr', forceRender: true, children: ( @@ -65,7 +65,7 @@ function BilingualInput(props) { ), }, { - label: labelEn, + label: {labelEn}, key: 'en', forceRender: true, children: ( diff --git a/src/pages/Dashboard/Settings/Settings.jsx b/src/pages/Dashboard/Settings/Settings.jsx index 52fa2ee5b..32514449e 100644 --- a/src/pages/Dashboard/Settings/Settings.jsx +++ b/src/pages/Dashboard/Settings/Settings.jsx @@ -75,28 +75,28 @@ const Settings = () => { const items = [ { - label: t('dashboard.settings.tab1'), + label: {t('dashboard.settings.tab1')}, key: '1', children: , disabled: false, adminOnly: false, }, { - label: t('dashboard.settings.tab2'), + label: {t('dashboard.settings.tab2')}, key: '2', children: , disabled: false, adminOnly: true, }, { - label: t('dashboard.settings.tab3'), + label: {t('dashboard.settings.tab3')}, key: '3', children: currentCalendarData && , disabled: false, adminOnly: true, }, { - label: t('dashboard.settings.tab4'), + label: {t('dashboard.settings.tab4')}, key: '4', children: , disabled: false, From 43b63d4a4f845e703f35d5376fe4be8bb9ace127 Mon Sep 17 00:00:00 2001 From: Abhishek P Anil Date: Mon, 2 Sep 2024 13:12:28 +0530 Subject: [PATCH 2/3] chore: specific data-cy attributes added for each bilingual field --- .../BilingualInput/BilingualInput.jsx | 4 ++-- .../BilingualTextEditor.jsx | 2 +- .../DraggableTree/DraggableTree.jsx | 2 +- .../QuickCreateOrganization.jsx | 2 +- .../QuickCreatePerson/QuickCreatePerson.jsx | 2 +- .../QuickCreatePlace/QuickCreatePlace.jsx | 2 +- src/constants/calendarSettingsForm.js | 2 +- src/constants/formFields.js | 2 +- src/pages/Dashboard/AddEvent/AddEvent.jsx | 16 +++++++------ .../Dashboard/AddTaxonomy/AddTaxonomy.jsx | 7 ++++-- .../CreateNewPlace/CreateNewPlace.jsx | 23 ++++++++++++------- 11 files changed, 38 insertions(+), 26 deletions(-) diff --git a/src/components/BilingualInput/BilingualInput.jsx b/src/components/BilingualInput/BilingualInput.jsx index 7a127ce75..055107c2f 100644 --- a/src/components/BilingualInput/BilingualInput.jsx +++ b/src/components/BilingualInput/BilingualInput.jsx @@ -52,7 +52,7 @@ function BilingualInput(props) { const items = [ { - label: {labelFr}, + label: {labelFr}, key: 'fr', forceRender: true, children: ( @@ -65,7 +65,7 @@ function BilingualInput(props) { ), }, { - label: {labelEn}, + label: {labelEn}, key: 'en', forceRender: true, children: ( diff --git a/src/components/BilingualTextEditor/BilingualTextEditor.jsx b/src/components/BilingualTextEditor/BilingualTextEditor.jsx index 76df81a2d..f788b5b1c 100644 --- a/src/components/BilingualTextEditor/BilingualTextEditor.jsx +++ b/src/components/BilingualTextEditor/BilingualTextEditor.jsx @@ -14,7 +14,7 @@ function BilingualTextEditor(props) { return ( - + - + - + - + - + +