Skip to content

Commit

Permalink
Merge pull request Expensify#296 from kushu7/fix-22929-prop-types
Browse files Browse the repository at this point in the history
fixed prop-type of forwardedRef
  • Loading branch information
srikarparsi authored Aug 10, 2023
2 parents 4ea9f77 + 3c73b99 commit 0c48f4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/withOnyx.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ export default function (mapOnyxToState) {
withOnyx.propTypes = {
forwardedRef: PropTypes.oneOfType([
PropTypes.func,
PropTypes.shape({current: PropTypes.instanceOf(React.Component)}),
// eslint-disable-next-line react/forbid-prop-types
PropTypes.shape({current: PropTypes.object}),
]),
};
withOnyx.defaultProps = {
Expand Down

0 comments on commit 0c48f4e

Please sign in to comment.