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:
parent
08dcd87d58
commit
78044a5cdc
@ -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 () {
|
||||
|
@ -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,
|
||||
|
@ -10,6 +10,9 @@ describe('Signature Request Component', function () {
|
||||
beforeEach(() => {
|
||||
wrapper = shallow((
|
||||
<SignatureRequest
|
||||
clearConfirmTransaction={() => {}}
|
||||
cancel={() => {}}
|
||||
sign={() => {}}
|
||||
txData={{
|
||||
msgParams: {
|
||||
data: '{"message": {"from": {"name": "hello"}}}',
|
||||
|
Loading…
Reference in New Issue
Block a user