From f228c04ed9ca95b467bb71e8c2bcc2e6cf5a1103 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 31 Jan 2019 17:33:14 +0100 Subject: [PATCH] =?UTF-8?q?Adapte=20le=20d=C3=A9lai=20d'apparition=20des?= =?UTF-8?q?=20r=C3=A9sultats=20et=20quicklink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/QuickLinks.js | 24 +++++++++++++----------- source/components/SalaryExplanation.js | 24 ++++++++++++------------ 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/source/components/QuickLinks.js b/source/components/QuickLinks.js index 5308abb0f..a766ca263 100644 --- a/source/components/QuickLinks.js +++ b/source/components/QuickLinks.js @@ -1,19 +1,21 @@ /* @flow */ -import { startConversation } from 'Actions/actions' -import withLanguage from 'Components/utils/withLanguage' -import { compose, toPairs } from 'ramda' -import React from 'react' -import { Trans } from 'react-i18next' -import { connect } from 'react-redux' -import { withRouter } from 'react-router' -import { animated, Spring } from 'react-spring' -import { validInputEnteredSelector } from 'Selectors/analyseSelectors' +import { startConversation } from 'Actions/actions'; +import withLanguage from 'Components/utils/withLanguage'; +import { compose, toPairs } from 'ramda'; +import React from 'react'; +import { Trans } from 'react-i18next'; +import { connect } from 'react-redux'; +import { withRouter } from 'react-router'; +import { animated, Spring } from 'react-spring'; +import { validInputEnteredSelector } from 'Selectors/analyseSelectors'; import type { Location } from 'react-router' type Props = { startConversation: (?string) => void, location: Location, - validInputEntered: boolean + validInputEntered: boolean, + quickLinks: {[string]: string}, + conversationStarted: boolean } const QuickLinks = ({ @@ -29,7 +31,7 @@ const QuickLinks = ({ height: show ? 'auto' : 0, opacity: show ? 1 : 0 }} - config={{ delay: show ? 4000 : 0 }} + config={{ delay: show ? 2000 : 0 }} native> {styles => ( + {!this.props.conversationStarted ? ( ) : (