Adapte le délai d'apparition des résultats et quicklink

pull/439/head
Johan Girod 2019-01-31 17:33:14 +01:00
parent 1559d6c44f
commit f228c04ed9
2 changed files with 25 additions and 23 deletions

View File

@ -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 => (
<animated.div

View File

@ -1,14 +1,14 @@
import React, { Component } from 'react'
import withTracker from 'Components/utils/withTracker'
import { compose } from 'ramda'
import { connect } from 'react-redux'
import ficheDePaieSelectors from 'Selectors/ficheDePaieSelectors'
import './SalaryCompactExplanation.css'
import SalaryFirstExplanation from './SalaryFirstExplanation'
import SalaryCompactExplanation from './SalaryCompactExplanation'
import * as Animate from 'Ui/animate'
import { startConversation } from 'Actions/actions'
import { formValueSelector } from 'redux-form'
import { startConversation } from 'Actions/actions';
import withTracker from 'Components/utils/withTracker';
import { compose } from 'ramda';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { formValueSelector } from 'redux-form';
import ficheDePaieSelectors from 'Selectors/ficheDePaieSelectors';
import * as Animate from 'Ui/animate';
import SalaryCompactExplanation from './SalaryCompactExplanation';
import './SalaryCompactExplanation.css';
import SalaryFirstExplanation from './SalaryFirstExplanation';
export default compose(
withTracker,
@ -27,7 +27,7 @@ export default compose(
class SalaryExplanation extends Component {
render() {
return (
<Animate.fromBottom>
<Animate.fromBottom delay={1000}>
{!this.props.conversationStarted ? (
<SalaryFirstExplanation {...this.props} />
) : (