From 7868787176c41229480eb1becf16430bb223db9d Mon Sep 17 00:00:00 2001 From: Martin Ohlson Date: Mon, 26 Feb 2024 15:45:58 +0000 Subject: [PATCH] refactor: use strings directly instead of wrapping in an object --- .../Dialogs/Conditions/AlphanumericCondition.js | 4 ++-- src/components/Dialogs/Conditions/ConditionsManager.js | 2 +- src/components/Dialogs/Conditions/DateCondition.js | 2 +- src/components/Dialogs/Conditions/NumericCondition.js | 4 ++-- src/components/Dialogs/Conditions/OrgUnitCondition.js | 2 +- src/components/Dialogs/Conditions/RepeatableEvents.js | 4 ++-- src/components/Dialogs/DynamicDimension.js | 2 +- src/components/Dialogs/FixedDimension.js | 4 ++-- .../Dialogs/PeriodDimension/PeriodDimension.js | 2 +- src/components/Dialogs/PeriodDimension/StartEndDate.js | 4 ++-- src/components/Dialogs/common/TransferLeftHeader.js | 2 +- src/components/MainSidebar/MainDimensions.js | 2 +- src/components/MainSidebar/MainSidebar.js | 2 +- .../ProgramDimensionsPanel/ProgramDimensions.js | 2 +- .../ProgramDimensionsPanel/ProgramDimensionsFilter.js | 2 +- .../MainSidebar/ProgramDimensionsPanel/StageFilter.js | 2 +- .../MainSidebar/ProgramDimensionsPanel/StageSelect.js | 2 +- .../MainSidebar/ProgramDimensionsPanel/TypeSelect.js | 2 +- .../MainSidebar/TrackedEntityDimensionsMenuItem.js | 2 +- .../TrackedEntityDimensionsPanel.js | 4 ++-- .../YourDimensionsPanel/YourDimensionsPanel.js | 4 ++-- src/components/Visualization/Visualization.js | 10 +++++----- .../VisualizationOptions/Options/LegendDisplayStyle.js | 2 +- .../VisualizationOptions/Options/ShowLegendKey.js | 2 +- 24 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/components/Dialogs/Conditions/AlphanumericCondition.js b/src/components/Dialogs/Conditions/AlphanumericCondition.js index bfd9f3b16..c1c6545c1 100644 --- a/src/components/Dialogs/Conditions/AlphanumericCondition.js +++ b/src/components/Dialogs/Conditions/AlphanumericCondition.js @@ -83,7 +83,7 @@ const BaseCondition = ({ key={key} value={key} label={value} - dataTest={'alphanumeric-condition-type'} + dataTest="alphanumeric-condition-type" /> ) )} @@ -105,7 +105,7 @@ const BaseCondition = ({ onChange={({ checked }) => toggleCaseSensitive(checked)} dense className={classes.caseSensitiveCheckbox} - dataTest={'condition-case-sensitive-checkbox'} + dataTest="condition-case-sensitive-checkbox" /> )}