From e813474ce10e02e1d84e4b80739f0a2bd501cabe Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 25 Apr 2018 15:45:29 +0200 Subject: [PATCH] =?UTF-8?q?:sparkles:=20Extrait=20le=20composant=20Progres?= =?UTF-8?q?sCircle=20dans=20un=20fichier=20s=C3=A9par=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout d'un selecteur pour le calcul du ratio, afin d'éviter de polluer l'arbres de composant avec les missingVariables --- source/components/ProgressCircle/index.js | 28 +++++ source/components/ProgressCircle/selector.js | 11 ++ source/components/TargetSelection.js | 119 +++++++------------ 3 files changed, 83 insertions(+), 75 deletions(-) create mode 100644 source/components/ProgressCircle/index.js create mode 100644 source/components/ProgressCircle/selector.js diff --git a/source/components/ProgressCircle/index.js b/source/components/ProgressCircle/index.js new file mode 100644 index 000000000..4fca655d6 --- /dev/null +++ b/source/components/ProgressCircle/index.js @@ -0,0 +1,28 @@ +import React from 'react' +import { Circle } from 'rc-progress' +import { targetCompletionRatioSelector } from './selector' +import { connect } from 'react-redux' + +let ProgressCircle = ({ ratio, isActiveInput }) => ( + + {ratio === 0 ? ( +