diff --git a/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap b/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap index ae2edeee58..f30374cbbd 100644 --- a/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap +++ b/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap @@ -13,6 +13,7 @@ exports[`renders correctly with one feature 1`] = ` {strategyDefinition.description}; + } if (strategyDefinition.name === 'flexibleRollout') { return ( ); } else { - return ( -
-
- {this.renderInputFields(strategyDefinition)} -
- ); + return
{this.renderInputFields(strategyDefinition)}
; } } @@ -217,6 +215,7 @@ class StrategyConfigure extends React.Component { render() { const { isDragging, connectDragPreview, connectDragSource, connectDropTarget } = this.props; + const description = this.props.strategyDefinition.description; let item; if (this.props.strategyDefinition) { @@ -224,17 +223,22 @@ class StrategyConfigure extends React.Component { const { name } = this.props.strategy; item = ( - +   {name} - {this.props.strategyDefinition.description} + {strategyContent && {strategyContent}} - - + + {this.props.removeStrategy ? ( diff --git a/frontend/src/component/feature/view-component.jsx b/frontend/src/component/feature/view-component.jsx index dcc36b78aa..5072f924a0 100644 --- a/frontend/src/component/feature/view-component.jsx +++ b/frontend/src/component/feature/view-component.jsx @@ -147,7 +147,7 @@ export default class ViewFeatureToggleComponent extends React.Component { return ( - {featureToggle.name} + {featureToggle.name}