blob: 4b169807d2708c5f4cc84c5395360bf13090535d (
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">
{I18n.t('stop_areas.actions.new')}
</button>
</form>
</div>
)
}
export default AddStopPoint = connect()(AddStopPoint)
|