Merge pull request #701 from betagouv/quickfix-max

Petites corrections
pull/703/head
Maxime Quandalle 2019-10-01 11:26:33 +02:00 committed by GitHub
commit 004d3d8f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 14 deletions

View File

@ -222,7 +222,7 @@
style="margin: 100px auto; max-width: 800px; text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 300;"
>
<img
src="https://www.numerique.gouv.fr/assets/img/logos/Logo_de_la_Republique_francaise.png"
src="images/marianne.svg"
alt="Un service de l'État français"
style="width: 200px; margin-bottom: 2rem;"
/>

View File

@ -82,6 +82,7 @@ export default function CurrencyInput({
}}
onChange={handleChange}
value={currentValue.toString().replace('.', decimalSeparator)}
autoComplete="off"
/>
{!isCurrencyPrefixed && <>&nbsp;</>}
</div>

View File

@ -60,6 +60,7 @@ export default compose(
debouncedSetFormValue(unit === '%' ? floatValue / 100 : floatValue)
}}
value={unit === '%' ? 100 * value : value}
autoComplete="off"
/>
{suffixed && (
<label className="suffix" htmlFor={'step-' + dottedName}>

View File

@ -179,9 +179,8 @@ function simulation(state = null, action, rules) {
}
const addAnswerToSituation = (dottedName, value, state) => {
const dottedPath = dottedName.split(' . ')
return compose(
set(lensPath(['form', 'conversation', 'values', ...dottedPath]), value),
set(lensPath(['simulation', 'situation', dottedName]), value),
over(lensPath(['conversationSteps', 'foldedSteps']), (steps = []) =>
uniq([...steps, dottedName])
)

View File

@ -1,5 +1,5 @@
import LangSwitcher from 'Components/LangSwitcher'
// import marianneSvg from 'Images/marianne.svg'
import marianneSvg from 'Images/marianne.svg'
import urssafSvg from 'Images/urssaf.svg'
import React, { useEffect, useState } from 'react'
import emoji from 'react-easy-emoji'
@ -32,9 +32,7 @@ export default function IframeFooter() {
<a href="https://beta.gouv.fr" target="_blank">
<img
style={{ height: '2.5rem' }}
src={
'https://www.numerique.gouv.fr/assets/img/logos/Logo_de_la_Republique_francaise.png'
}
src={marianneSvg}
alt="un service de lEtat français incubé par beta.gouv.fr"
/>
</a>

View File

@ -4,7 +4,7 @@ import { T } from 'Components'
import withSitePaths from 'Components/utils/withSitePaths'
import logoEnSvg from 'Images/logo-mycompany.svg'
import logoSvg from 'Images/logo.svg'
// import marianneSvg from 'Images/marianne.svg'
import marianneSvg from 'Images/marianne.svg'
import urssafSvg from 'Images/urssaf.svg'
import React from 'react'
import emoji from 'react-easy-emoji'
@ -37,12 +37,7 @@ export default withSitePaths(({ sitePaths }: Props) => {
href="https://beta.gouv.fr"
target="_blank"
className="landing-header__institutional-logo">
<img
alt="logo marianne"
src={
'https://www.numerique.gouv.fr/assets/img/logos/Logo_de_la_Republique_francaise.png'
}
/>
<img alt="logo marianne" src={marianneSvg} />
</a>
<a
href="https://www.urssaf.fr"