From 6957ea6fe222a5193ce27a797488055f16a9fa88 Mon Sep 17 00:00:00 2001 From: Mael Date: Mon, 21 Jan 2019 18:33:23 +0100 Subject: [PATCH] :sparkles: Nettoyage de deux erreurs JS anodines --- source/components/utils/Scroll.js | 3 +- source/sites/mycompanyinfrance.fr/App.js | 59 +++++++++++++----------- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/source/components/utils/Scroll.js b/source/components/utils/Scroll.js index 07dcd7d6b..2eb86fb8a 100644 --- a/source/components/utils/Scroll.js +++ b/source/components/utils/Scroll.js @@ -1,4 +1,5 @@ import React, { Component } from 'react' +import { dissoc } from 'ramda' const forEachParent = (node, fn) => { if (!node) { @@ -73,7 +74,7 @@ export class ScrollToElement extends Component { render() { return (
{ return ( - -
- {/* Passing location down to prevent update blocking */} - -
- -
- - - - - {process.env.NODE_ENV !== 'production' && ( - - )} + <> + +
+ {/* Passing location down to prevent update blocking */} + +
+ +
+ + + + + {process.env.NODE_ENV !== 'production' && ( + + )} +
+
-
-
+ ) })