From fa89ca6e3cad4fd00fdd27e2ad3fc044eb2fe036 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 21 Dec 2017 12:27:26 +0000 Subject: [PATCH] refactor: icon dropdown list --- src/js/components/view/icon-dropdown-list.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/js/components/view/icon-dropdown-list.js b/src/js/components/view/icon-dropdown-list.js index 7ec9bf06f..cdc3d7f8a 100644 --- a/src/js/components/view/icon-dropdown-list.js +++ b/src/js/components/view/icon-dropdown-list.js @@ -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 }