diff --git a/frontend/src/component/common/select.tsx b/frontend/src/component/common/select.tsx index 9b3ba120eb..9129a85742 100644 --- a/frontend/src/component/common/select.tsx +++ b/frontend/src/component/common/select.tsx @@ -24,6 +24,7 @@ export interface ISelectMenuProps { disabled?: boolean; className?: string; classes?: any; + formControlStyles?: React.CSSProperties; } const SelectMenu: React.FC = ({ @@ -36,6 +37,7 @@ const SelectMenu: React.FC = ({ disabled = false, className, classes, + formControlStyles = {}, ...rest }) => { const renderSelectItems = () => @@ -51,7 +53,12 @@ const SelectMenu: React.FC = ({ )); return ( - + {label} + onUpdate('groupId')(e.target.value) + } + data-testid={FLEXIBLE_STRATEGY_GROUP_ID} + /> + + + + ); + } + return (
{ const { context } = useUnleashContext(); + const newStrategyConfiguration = useUiFlag('newStrategyConfiguration'); const theme = useTheme(); const resolveStickinessOptions = () => { @@ -51,6 +53,9 @@ export const StickinessSelect = ({ return options; }; + // newStrategyConfiguration - Temporary check for backwards compatibility + const formControlStyles = newStrategyConfiguration ? { width: '100%' } : {}; + const stickinessOptions = resolveStickinessOptions(); return (