From d90f0e7a2a65bd2e1a33c4b7ac22e0e270bec8fd Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Wed, 26 Oct 2016 16:10:55 +0200 Subject: [PATCH] fix warning --- .../src/component/error/error-component.jsx | 1 - .../src/component/feature/feature-component.jsx | 13 ++++++------- .../src/component/feature/form/strategies-add.jsx | 2 +- .../component/feature/form/strategy-configure.jsx | 2 +- .../unleash-frontend-next/src/store/error-store.js | 9 +++++++-- .../src/store/feature-actions.js | 5 +++-- .../unleash-frontend-next/src/store/feature-api.js | 3 ++- 7 files changed, 20 insertions(+), 15 deletions(-) diff --git a/packages/unleash-frontend-next/src/component/error/error-component.jsx b/packages/unleash-frontend-next/src/component/error/error-component.jsx index 4d63b5fbff..9bd1d64017 100644 --- a/packages/unleash-frontend-next/src/component/error/error-component.jsx +++ b/packages/unleash-frontend-next/src/component/error/error-component.jsx @@ -19,7 +19,6 @@ class ErrorComponent extends React.Component { icon="question_answer" label={snackbarMsg} ref="snackbar" - timeout={2000} onClick={this.props.muteErrors} onTimeout={this.props.muteErrors} type="warning" diff --git a/packages/unleash-frontend-next/src/component/feature/feature-component.jsx b/packages/unleash-frontend-next/src/component/feature/feature-component.jsx index 15107f01a1..619282c935 100644 --- a/packages/unleash-frontend-next/src/component/feature/feature-component.jsx +++ b/packages/unleash-frontend-next/src/component/feature/feature-component.jsx @@ -12,24 +12,23 @@ const Feature = ({ feature, onFeatureClick, onFeatureRemove }) => { const { name, description, enabled, strategies } = feature; // eslint-disable-line no-shadow const actions = [ -
{strategies && strategies.map(s => {s.name})}
, - +
{strategies && strategies.map((s, i) => {s.name})}
, + , - onFeatureRemove(name)} />, + onFeatureRemove(name)} />, ]; const leftActions = [ - onFeatureClick(feature)} checked={enabled} />, + onFeatureClick(feature)} checked={enabled} />, ]; return ( - {name} - } + caption={name} legend={(description && description.substring(0, 100)) || '-'} /> ); diff --git a/packages/unleash-frontend-next/src/component/feature/form/strategies-add.jsx b/packages/unleash-frontend-next/src/component/feature/form/strategies-add.jsx index 1da650fdee..b775fa827b 100644 --- a/packages/unleash-frontend-next/src/component/feature/form/strategies-add.jsx +++ b/packages/unleash-frontend-next/src/component/feature/form/strategies-add.jsx @@ -41,7 +41,7 @@ class AddStrategy extends React.Component { return (
- +
{item.name} {item.description} diff --git a/packages/unleash-frontend-next/src/component/feature/form/strategy-configure.jsx b/packages/unleash-frontend-next/src/component/feature/form/strategy-configure.jsx index ca217cd392..fdef8863ce 100644 --- a/packages/unleash-frontend-next/src/component/feature/form/strategy-configure.jsx +++ b/packages/unleash-frontend-next/src/component/feature/form/strategy-configure.jsx @@ -53,7 +53,7 @@ class StrategyConfigure extends React.Component { render () { const leftActions = [ -