From 2d28e75e5ac8b25f6e8d54278b0744e495e4de7e Mon Sep 17 00:00:00 2001 From: Mael Date: Mon, 14 Jan 2019 18:50:00 +0100 Subject: [PATCH] WIP :bug: Condition inutile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A priori, à voir pourquoi elle a été mise en place --- source/components/rule/Rule.js | 65 ++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/source/components/rule/Rule.js b/source/components/rule/Rule.js index 9cc0fd779..521d738ed 100644 --- a/source/components/rule/Rule.js +++ b/source/components/rule/Rule.js @@ -30,7 +30,7 @@ import Examples from './Examples' import RuleHeader from './Header' import References from './References' import './Rule.css' -import sitePaths from '../../sites/mycompanyinfrance.fr/sitePaths'; +import sitePaths from '../../sites/mycompanyinfrance.fr/sitePaths' let LazySource = React.lazy(() => import('./RuleSource')) @@ -74,7 +74,7 @@ export default compose( ) : ( -
+
{title} @@ -121,12 +121,10 @@ export default compose( {//flatRule.question && // Fonctionnalité intéressante, à implémenter correctement false && } - {flatRule.ns && ( - - )} + {flatRule.note && (

Note:

@@ -172,29 +170,36 @@ export default compose( } ) -let NamespaceRulesList = compose(withColours, withSitePaths)(({ namespaceRules, colours, sitePaths }) => { +let NamespaceRulesList = compose( + withColours, + withSitePaths +)(({ namespaceRules, colours, sitePaths }) => { return ( -
-

- Règles associées -

-
    - {namespaceRules.map(r => ( -
  • - - {r.title || r.name} - -
  • - ))} -
-
-) - }) +
+

+ Règles associées +

+
    + {namespaceRules.map(r => ( +
  • + + {r.title || r.name} + +
  • + ))} +
+
+ ) +}) const UserInput = reduxForm({ form: 'conversation',