blob: fd9227ff35ed499374bb013c2d11bcaa8c8e1bba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import React from 'react'
import { connect } from 'react-redux'
import actions from '../actions'
let AddStopPoint = ({ dispatch }) => {
return (
<div className="nested-linker">
<form onSubmit={e => {
e.preventDefault()
dispatch(actions.closeMaps())
dispatch(actions.addStop())
}}>
<button type="submit" className="btn btn-outline-primary">
Ajouter un arrêt
</button>
</form>
</div>
)
}
export default AddStopPoint = connect()(AddStopPoint)
|