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

Fix message PropType of ActionableMessage (#9653)

The `message` prop of `ActionableMessage` had a PropType of `string`,
but it was being passed a `node`. This was resulting in a PropType
error in the console on the view quote page.

The PropType has been changed to `node`, and the error is now gone.
This commit is contained in:
Mark Stacey 2020-10-20 10:36:44 -02:30 committed by GitHub
parent d43738448c
commit 7f1bbbc9a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ export default function ActionableMessage ({
} }
ActionableMessage.propTypes = { ActionableMessage.propTypes = {
message: PropTypes.string.isRequired, message: PropTypes.node.isRequired,
primaryAction: PropTypes.shape({ primaryAction: PropTypes.shape({
label: PropTypes.string, label: PropTypes.string,
onClick: PropTypes.func, onClick: PropTypes.func,