aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/vehicle_journeys/components/tools/VehicleJourneyInfoButton.js
blob: 538bbdbd61a1acfc479ac21b1eb0d40853cd9422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import actions from '../../actions'

export default class VehicleJourneyInfoButton extends Component {
  constructor(props) {
    super(props)
  }


  render() {
    return (
      <div className='info-button'>
        <button
          type='button'
          data-toggle='modal'
          data-target='#EditVehicleJourneyModal'
          onClick={() => this.props.onOpenEditModal(this.props.vehicleJourney)}
        >
          <span className='fa fa-info'></span>
        </button>
      </div>
    )
  }
}

VehicleJourneyInfoButton.propTypes = {
  onOpenEditModal: PropTypes.func.isRequired,
  vehicleJourney: PropTypes.object.isRequired,
}