Skip to content

Commit

Permalink
fix: πŸ› Added theme variable to props
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-B-06 committed Aug 6, 2020
1 parent 7d89cc2 commit 7b1b51b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/searchComponent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ SearchComponent.propTypes = {
placeholderTextColor: PropTypes.string,
onChange: PropTypes.func.isRequired,
value: PropTypes.string.isRequired,
onSearchClear: PropTypes.func
onSearchClear: PropTypes.func,
theme: PropTypes.oneOf(['LIGHT', 'DARK'])
}


Expand All @@ -172,7 +173,8 @@ SearchComponent.defaultProps = {
placeholderTextColor: null,
onChange: () => { },
value: '',
onSearchClear: () => { }
onSearchClear: () => { },
theme: 'LIGHT'
}

export default SearchComponent;

0 comments on commit 7b1b51b

Please sign in to comment.