mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: Also display strategy variant information on default strategies (#8115)
This change copies (and then simplifies) the strategy variant display logic from `frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/EnvironmentAccordionBody/StrategyDraggableItem/StrategyItem/StrategyItem.tsx` and inserts it into the `ProjectEnvironmentDefaultStrategy` component. Before:  After: 
This commit is contained in:
		
							parent
							
								
									ae719325cc
								
							
						
					
					
						commit
						7e52da11bc
					
				| @ -8,6 +8,7 @@ import { StrategyExecution } from 'component/feature/FeatureView/FeatureOverview | ||||
| import type { ProjectEnvironmentType } from 'interfaces/environments'; | ||||
| import { useMemo } from 'react'; | ||||
| import type { CreateFeatureStrategySchema } from 'openapi'; | ||||
| import SplitPreviewSlider from 'component/feature/StrategyTypes/SplitPreviewSlider/SplitPreviewSlider'; | ||||
| 
 | ||||
| interface ProjectEnvironmentDefaultStrategyProps { | ||||
|     environment: ProjectEnvironmentType; | ||||
| @ -75,6 +76,10 @@ const ProjectEnvironmentDefaultStrategy = ({ | ||||
|                 } | ||||
|             > | ||||
|                 <StrategyExecution strategy={strategy} /> | ||||
| 
 | ||||
|                 {strategy.variants && strategy.variants.length > 0 ? ( | ||||
|                     <SplitPreviewSlider variants={strategy.variants} /> | ||||
|                 ) : null} | ||||
|             </StrategyItemContainer> | ||||
|         </> | ||||
|     ); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user