Skip to content

Commit

Permalink
refactor: icon dropdown list
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Dec 21, 2017
1 parent f61bb67 commit fa89ca6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/js/components/view/icon-dropdown-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ export default function IconDropdownList (props) {

IconDropdownList.propTypes = {
icon: PropTypes.string.isRequired,
data: PropTypes.array,
onChange: PropTypes.func,
defaultValue: PropTypes.any
}

IconDropdownList.defaultProps = {
data: [],
onChange () {}
data: PropTypes.array.isRequired,
onChange: PropTypes.func.isRequired,
defaultValue: PropTypes.any.isRequired
}

0 comments on commit fa89ca6

Please sign in to comment.