From d139e6954526a24d7b3775c975b7a779f2e09d96 Mon Sep 17 00:00:00 2001 From: Thomas Huang Date: Thu, 28 Apr 2022 15:14:53 -0700 Subject: [PATCH] Unit test proptype (#14509) * Confirm page container content currentTransaction proptype change string to object * Add title prop --- .../confirm-page-container-container.test.js | 1 + .../confirm-page-container-content.component.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/components/app/confirm-page-container/confirm-page-container-container.test.js b/ui/components/app/confirm-page-container/confirm-page-container-container.test.js index da2025e12..6ca95a83b 100644 --- a/ui/components/app/confirm-page-container/confirm-page-container-container.test.js +++ b/ui/components/app/confirm-page-container/confirm-page-container-container.test.js @@ -49,6 +49,7 @@ describe('Confirm Page Container Container Test', () => { const store = configureMockStore()(mockStore); const props = { + title: 'Title', fromAddress: '0xd8f6a2ffb0fc5952d16c9768b71cfd35b6399aa5', toAddress: '0x7a1A4Ad9cc746a70ee58568466f7996dD0aCE4E8', origin: 'testOrigin', // required diff --git a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js index c10d0219a..b09b534ed 100644 --- a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js +++ b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js @@ -47,7 +47,7 @@ export default class ConfirmPageContainerContent extends Component { hideTitle: PropTypes.bool, supportsEIP1559V2: PropTypes.bool, hasTopBorder: PropTypes.bool, - currentTransaction: PropTypes.string, + currentTransaction: PropTypes.object, nativeCurrency: PropTypes.string, networkName: PropTypes.string, showBuyModal: PropTypes.func,