Skip to content

Commit fc43585

Browse files
committed
fix some lint errors
1 parent b96eb77 commit fc43585

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

components/form/button-group/ButtonGroup.es6.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react'
2+
import PropTypes from 'prop-types'
23
import classnames from 'classnames'
34

45
function ButtonGroup ({ vertical, className, children }) {
@@ -12,4 +13,10 @@ function ButtonGroup ({ vertical, className, children }) {
1213
)
1314
}
1415

16+
ButtonGroup.propTypes = {
17+
vertical: PropTypes.bool,
18+
className: PropTypes.string,
19+
children: PropTypes.node
20+
}
21+
1522
export default ButtonGroup

components/form/checkbox/Checkbox.es6.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react'
2+
import PropTypes from 'prop-types'
23
import classnames from 'classnames'
34

45
import { Checkmark } from '../../Icons.es6.js'
@@ -34,6 +35,16 @@ function Checkbox ({ disabled, checked, indeterminate, label, name, onChange, ha
3435
)
3536
}
3637

38+
Checkbox.propTypes = {
39+
disabled: PropTypes.bool,
40+
checked: PropTypes.bool,
41+
indeterminate: PropTypes.bool,
42+
label: PropTypes.string,
43+
name: PropTypes.string,
44+
onChange: PropTypes.func,
45+
hasError: PropTypes.bool
46+
}
47+
3748
Checkbox.defaultProps = {
3849
label: '',
3950
name: '',

components/form/checkbox/CheckboxSelect.es6.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react'
2+
import PropTypes from 'prop-types'
23
import { isEqual } from 'lodash'
34

45
import Checkbox from '../checkbox/Checkbox.es6.js'
@@ -47,6 +48,16 @@ function CheckboxSelect ({ checked, disabled, label, onChange, onSelectChange,
4748
)
4849
}
4950

51+
CheckboxSelect.propTypes = {
52+
checked: PropTypes.bool,
53+
disabled: PropTypes.bool,
54+
label: PropTypes.string,
55+
onChange: PropTypes.func,
56+
onSelectChange: PropTypes.func,
57+
selectOptions: PropTypes.array,
58+
selectedOption: PropTypes.object
59+
}
60+
5061
CheckboxSelect.defaultProps = {
5162
checked: false,
5263
disabled: false,

0 commit comments

Comments
 (0)