Merge pull request #715 from betagouv/taux-atmp-2019

MAJ des taux AT/MP 2019
pull/724/head
Maxime Quandalle 2019-10-08 10:46:49 +02:00 committed by GitHub
commit 544a3f4a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

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