From 7e72a56e81fb40a014cc4d41417569dad021d92f Mon Sep 17 00:00:00 2001 From: Irina Kuzmina Date: Mon, 9 Dec 2024 13:26:12 +0300 Subject: [PATCH] Change the order of values in the size selection control (indicator and table) --- .../Dialogs/DialogMetricSettings/DialogMetricSettings.tsx | 4 ++-- src/ui/units/wizard/components/Dialogs/Settings/Settings.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/units/wizard/components/Dialogs/DialogMetricSettings/DialogMetricSettings.tsx b/src/ui/units/wizard/components/Dialogs/DialogMetricSettings/DialogMetricSettings.tsx index b94db442fe..6abc543482 100644 --- a/src/ui/units/wizard/components/Dialogs/DialogMetricSettings/DialogMetricSettings.tsx +++ b/src/ui/units/wizard/components/Dialogs/DialogMetricSettings/DialogMetricSettings.tsx @@ -21,9 +21,9 @@ import './DialogMetricSettings.scss'; const i18n = I18n.keyset('container.metric-dialog'); -const SIZES = ['xl', 'l', 'm', 's']; +const SIZES = ['s', 'm', 'l', 'xl']; const DEFAULT_SIZE = 'm'; -const RADIO_TEXT = ['L', 'M', 'S', 'XS']; +const RADIO_TEXT = ['XS', 'S', 'M', 'L']; const b = block('dialog-metric-settings'); diff --git a/src/ui/units/wizard/components/Dialogs/Settings/Settings.tsx b/src/ui/units/wizard/components/Dialogs/Settings/Settings.tsx index 1e1eb73e70..0facfb1a41 100644 --- a/src/ui/units/wizard/components/Dialogs/Settings/Settings.tsx +++ b/src/ui/units/wizard/components/Dialogs/Settings/Settings.tsx @@ -577,7 +577,7 @@ class DialogSettings extends React.PureComponent { return null; } - const sizes = Object.values(WidgetSize); + const sizes = [WidgetSize.S, WidgetSize.M, WidgetSize.L]; const selected = this.state.size ?? DEFAULT_WIDGET_SIZE; return (