1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Adjust QrCodeView propTypes for its Qr.messages prop (#7529)

This commit is contained in:
Whymarrh Whitby 2019-11-24 13:45:35 -03:30 committed by GitHub
parent 3377228b74
commit a849218f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,10 @@ function QrCodeView (props) {
QrCodeView.propTypes = { QrCodeView.propTypes = {
warning: PropTypes.node, warning: PropTypes.node,
Qr: PropTypes.shape({ Qr: PropTypes.shape({
message: PropTypes.array, message: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
data: PropTypes.string.isRequired, data: PropTypes.string.isRequired,
}).isRequired, }).isRequired,
} }