diff options
Diffstat (limited to 'app/javascript/routes/components/StopPoint.js')
| -rw-r--r-- | app/javascript/routes/components/StopPoint.js | 16 | 
1 files changed, 9 insertions, 7 deletions
| diff --git a/app/javascript/routes/components/StopPoint.js b/app/javascript/routes/components/StopPoint.js index 606121f99..af51a6bb4 100644 --- a/app/javascript/routes/components/StopPoint.js +++ b/app/javascript/routes/components/StopPoint.js @@ -1,4 +1,6 @@ -import React, { PropTypes } from 'react' +import React from 'react' +import PropTypes from 'prop-types' +  import BSelect2 from './BSelect2'  import OlMap from './OlMap' @@ -16,15 +18,15 @@ export default function StopPoint(props, {I18n}) {          <div>            <select className='form-control' value={props.value.for_boarding} id="for_boarding" onChange={props.onSelectChange}> -            <option value="normal">{I18n.routes.edit.stop_point.boarding.normal}</option> -            <option value="forbidden">{I18n.routes.edit.stop_point.boarding.forbidden}</option> +            <option value="normal">{I18n.t('routes.edit.stop_point.boarding.normal')}</option> +            <option value="forbidden">{I18n.t('routes.edit.stop_point.boarding.forbidden')}</option>            </select>          </div>          <div>            <select className='form-control' value={props.value.for_alighting} id="for_alighting" onChange={props.onSelectChange}> -            <option value="normal">{I18n.routes.edit.stop_point.alighting.normal}</option> -            <option value="forbidden">{I18n.routes.edit.stop_point.alighting.forbidden}</option> +            <option value="normal">{I18n.t('routes.edit.stop_point.alighting.normal')}</option> +            <option value="forbidden">{I18n.t('routes.edit.stop_point.alighting.forbidden')}</option>            </select>          </div> @@ -75,7 +77,7 @@ export default function StopPoint(props, {I18n}) {    )  } -StopPoint.PropTypes = { +StopPoint.propTypes = {    onToggleMap: PropTypes.func.isRequired,    onToggleEdit: PropTypes.func.isRequired,    onDeleteClick: PropTypes.func.isRequired, @@ -91,4 +93,4 @@ StopPoint.PropTypes = {  StopPoint.contextTypes = {    I18n: PropTypes.object -}
\ No newline at end of file +} | 
