Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
chore(propTypes): Fix minor propType warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Oct 27, 2020
1 parent 5871b15 commit 1ca64d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Arrow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Arrow.propTypes = {
* Controls how far the arrow is placed from the container's edge when
* the placement contains a '-start' or '-end' suffix.
*/
distanceFromEdge: PropTypes.number,
distanceFromEdge: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
/**
* The arrow will be placed on the opposing side of the defined direction:
* 'top', 'bottom', 'left', or 'right'.
Expand Down
6 changes: 5 additions & 1 deletion src/Text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ Text.propTypes = {
PropTypes.array,
]),
fontSize: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
lineHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.array]),
lineHeight: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string,
PropTypes.array,
]),
overflow: PropTypes.oneOfType([
PropTypes.oneOf(['ellipsis', 'wrap']),
PropTypes.array,
Expand Down

0 comments on commit 1ca64d1

Please sign in to comment.