Skip to content

Commit

Permalink
BaseAnchorForAttachmentsOnly download prop type mismatch
Browse files Browse the repository at this point in the history
the prop was meant to be and is used like an object: 22fe126
  • Loading branch information
kidroca committed Mar 24, 2023
1 parent 474d5ed commit 45f2a19
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ const propTypes = {
onPressOut: PropTypes.func,

/** If a file download is happening */
download: PropTypes.bool,
download: PropTypes.shape({
isDownloading: PropTypes.bool.isRequired,
}),

...anchorForAttachmentsOnlyPropTypes,
};

const defaultProps = {
onPressIn: undefined,
onPressOut: undefined,
download: false,
download: {isDownloading: false},
...anchorForAttachmentsOnlyDefaultProps,
};

Expand Down

0 comments on commit 45f2a19

Please sign in to comment.