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

Fix propTypes and test props for SignatureRequest component (#7849)

This commit is contained in:
Whymarrh Whitby 2020-01-16 15:53:14 -03:30 committed by GitHub
parent 08dcd87d58
commit 78044a5cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import NetworkDisplay from '../../network-display'
export default class SignatureRequestHeader extends PureComponent {
static propTypes = {
selectedAccount: PropTypes.object.isRequired,
selectedAccount: PropTypes.object,
}
render () {

View File

@ -14,7 +14,7 @@ export default class SignatureRequest extends PureComponent {
address: PropTypes.string,
balance: PropTypes.string,
name: PropTypes.string,
}).isRequired,
}),
clearConfirmTransaction: PropTypes.func.isRequired,
cancel: PropTypes.func.isRequired,

View File

@ -10,6 +10,9 @@ describe('Signature Request Component', function () {
beforeEach(() => {
wrapper = shallow((
<SignatureRequest
clearConfirmTransaction={() => {}}
cancel={() => {}}
sign={() => {}}
txData={{
msgParams: {
data: '{"message": {"from": {"name": "hello"}}}',