From 1ca64d19d99fc7cdfe9fa4c67e10984a32df5e73 Mon Sep 17 00:00:00 2001 From: DIonysos Dajka Date: Tue, 27 Oct 2020 11:15:07 +0100 Subject: [PATCH] chore(propTypes): Fix minor propType warnings --- src/Arrow/index.js | 2 +- src/Text/index.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Arrow/index.js b/src/Arrow/index.js index 42f92b5b..1e849750 100644 --- a/src/Arrow/index.js +++ b/src/Arrow/index.js @@ -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'. diff --git a/src/Text/index.js b/src/Text/index.js index d76cc072..251b0d1d 100644 --- a/src/Text/index.js +++ b/src/Text/index.js @@ -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,