diff --git a/package.json b/package.json index 30988b416..f293fc631 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "react-redux": "^5.0.5", "react-router": "^4.1.1", "react-router-dom": "^4.1.1", + "react-scroll": "^1.5.4", "reduce-reducers": "^0.1.2", "redux": "^3.6.0", "redux-form": "6.8.0", @@ -54,8 +55,8 @@ "chokidar": "^1.7.0", "core-js": "^2.4.1", "css-loader": "^0.28.1", - "eslint": "^4.4.1", "daggy": "^1.1.0", + "eslint": "^4.4.1", "eslint-plugin-react": "^7.0.1", "express": "^4.15.3", "fantasy-combinators": "0.0.1", diff --git a/règles/rémunération-travail/entités/ok/CDD.yaml b/règles/rémunération-travail/entités/ok/CDD.yaml index e315eec4a..e9e51d14d 100644 --- a/règles/rémunération-travail/entités/ok/CDD.yaml +++ b/règles/rémunération-travail/entités/ok/CDD.yaml @@ -78,3 +78,9 @@ titre: Votre obligation motivation: Découvrez en quelques clics le montant des 4 obligations du CDD # CIF, majoration chômage, indemnité de fin de contrat, indemnité compensatrice des congés payés + hypothèses: + contrat salarié . type de contrat: CDD + par défaut: + contrat salarié . CDD . événement: non + contrat salarié . CDD . congés non pris: 0 + contrat salarié . CDD . contrat jeune vacances: non diff --git a/source/actions.js b/source/actions.js index d55637aaa..5160d932a 100644 --- a/source/actions.js +++ b/source/actions.js @@ -30,5 +30,3 @@ export function changeThemeColour(colour) {return {type: CHANGE_THEME_COLOUR, co export const EXPLAIN_VARIABLE = 'EXPLAIN_VARIABLE' - -export const POINT_OUT_OBJECTIVES = 'POINT_OUT_OBJECTIVES' diff --git a/source/components/Results.css b/source/components/Results.css index 7c296dd3e..80ba36482 100644 --- a/source/components/Results.css +++ b/source/components/Results.css @@ -135,23 +135,6 @@ width: 100%; } -#results li:not(.pointedOut):hover .rule-box { - background: #ddd; -} -#results li.irrelevant .rule-box { - background: rgba(255, 255, 255, 0.35); -} - -#results li.pointedOut:not(.irrelevant) .rule-name { - color: #4A89DC; -} -#results li.pointedOut .rule-type { - color: #4A89DC; -} - -#results li.pointedOut .rule-box { - border-bottom: .8em solid #4A89DC; -} #results li.number p { color: #4A89DC; font-weight: bold; diff --git a/source/components/Results.js b/source/components/Results.js index bfcfecf84..2e8a85234 100644 --- a/source/components/Results.js +++ b/source/components/Results.js @@ -18,18 +18,16 @@ let humanFigure = decimalDigits => value => fmt(value.toFixed(decimalDigits)) @withRouter @connect( state => ({ - pointedOutObjectives: state.pointedOutObjectives, analysedSituation: state.analysedSituation, conversationStarted: !R.isEmpty(state.form), conversationFirstAnswer: R.path(['form', 'conversation', 'values'])(state), - situationGate: (name => formValueSelector('conversation')(state, name)) + situationGate: state.situationGate }) ) export default class Results extends Component { render() { let { analysedSituation, - pointedOutObjectives, conversationStarted, conversationFirstAnswer: showResults, situationGate, @@ -70,12 +68,9 @@ export default class Results extends Component { unsatisfied = ruleValue == null, nonApplicableValue = nonApplicable ? nonApplicable.nodeValue : false, irrelevant = nonApplicableValue === true || formuleValue == 0, - number = nonApplicableValue == false && formuleValue != null, - pointedOut = - pointedOutObjectives.find(objective => objective == dottedName) - || R.contains(encodeRuleName(name))(location.pathname) + number = nonApplicableValue == false && formuleValue != null - ;
- Votre simulation est terminée ! -
-- N'hésitez pas à modifier vos réponses, ou cliquez sur vos résultats pour comprendre le calcul. -
-+ Votre simulation est terminée ! +
++ N'hésitez pas à modifier vos réponses, ou cliquez sur vos résultats pour comprendre le calcul. +
+