Skip to content

Commit 8f44e46

Browse files
author
David Emory
committed
style(form): Fix lint errors in DateTimeSelector
1 parent 8a9f98f commit 8f44e46

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

lib/components/form/date-time-selector.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
// import moment from 'moment'
22
import React, {PropTypes, Component} from 'react'
3-
import { Form, FormGroup, FormControl, Grid, Row, Col } from 'react-bootstrap'
3+
import { Form, FormGroup, FormControl, Row, Col } from 'react-bootstrap'
44
// import { SingleDatePicker } from 'react-dates'
55
import { connect } from 'react-redux'
66

77
import { setDepart, setDate, setTime } from '../../actions/form'
88

99
class DateTimeSelector extends Component {
1010
static propTypes = {
11+
date: PropTypes.string,
12+
departArrive: PropTypes.string,
13+
time: PropTypes.string,
1114
location: PropTypes.object,
1215
label: PropTypes.string,
16+
setDate: PropTypes.func,
17+
setDepart: PropTypes.func,
1318
setLocation: PropTypes.func,
19+
setTime: PropTypes.func,
1420
type: PropTypes.string // replace with locationType?
1521
}
1622
constructor (props) {
@@ -40,16 +46,16 @@ class DateTimeSelector extends Component {
4046
<FormGroup style={{marginBottom: '15px'}} className='date-time-selector'>
4147
<Row>
4248
<Col xs={6}>
43-
<FormControl
44-
componentClass='select'
45-
value={departArrive}
46-
onChange={this._onDepartChange}
47-
style={{width: '100%'}}
48-
>
49-
{options.map((o, i) => (
50-
<option key={i} value={o}>{o}</option>
51-
))}
52-
</FormControl>
49+
<FormControl
50+
componentClass='select'
51+
value={departArrive}
52+
onChange={this._onDepartChange}
53+
style={{width: '100%'}}
54+
>
55+
{options.map((o, i) => (
56+
<option key={i} value={o}>{o}</option>
57+
))}
58+
</FormControl>
5359
</Col>
5460
<Col>{ }</Col>
5561
</Row>

0 commit comments

Comments
 (0)