Skip to content

Commit

Permalink
refactor: icon dropdown list
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored Dec 21, 2017
2 parents f61bb67 + fa89ca6 commit bbb4d8b
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 bbb4d8b

Please sign in to comment.