🐛 Corrige intégration des taux AT/MP

Bug introduit dans #715
pull/724/head
Maxime Quandalle 2019-10-08 10:59:42 +02:00
parent 544a3f4a53
commit d459d3b829
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
2 changed files with 3 additions and 7 deletions

View File

@ -302,7 +302,7 @@
margin-left: 0.3em;
}
.select-answer.commune {
.select-answer {
flex: 1;
}
.select-answer.commune .Select {

View File

@ -40,7 +40,7 @@ export default FormDecorator('select')(function Select(props) {
const [options, setOptions] = useState(null)
useEffect(() => {
fetch(
'hthttps://raw.githubusercontent.com/betagouv/taux-collectifs-cotisation-atmp/master/taux-2019.json'
'https://raw.githubusercontent.com/betagouv/taux-collectifs-cotisation-atmp/master/taux-2019.json'
)
.then(response => {
if (!response.ok) {
@ -59,11 +59,7 @@ export default FormDecorator('select')(function Select(props) {
return (
<div className="select-answer">
<ReactSelectWrapper
{...props}
options={options}
style={{ width: '500px', maxWidth: '100%' }}
/>
<ReactSelectWrapper {...props} options={options} />
</div>
)
})