Skip to content

Commit

Permalink
Change propType to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 19, 2020
1 parent 97e1907 commit d5d320e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react/components/AutocompleteInput/SearchInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const propTypes = {
/** Determine if the input and the button should be disabled */
disabled: PropTypes.bool,
/** Determine the search bar size */
size: PropTypes.string,
size: PropTypes.oneOf(['small', 'regular', 'large']),
}

const defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion react/components/AutocompleteInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const propTypes = {
* Selects a size of the input bar, could be set to `small`, `regular` or `large`.
* `regular` is the default value.
*/
size: PropTypes.string,
size: PropTypes.oneOf(['small', 'regular', 'large']),
}).isRequired,
}

Expand Down

0 comments on commit d5d320e

Please sign in to comment.