mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove memo input
This commit is contained in:
parent
e89ae877aa
commit
ebb2d38480
@ -400,7 +400,7 @@
|
|||||||
|
|
||||||
.send-v2 {
|
.send-v2 {
|
||||||
&__container {
|
&__container {
|
||||||
height: 701px;
|
// height: 701px;
|
||||||
width: 380px;
|
width: 380px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
@ -416,6 +416,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -520,18 +521,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__form {
|
&__form {
|
||||||
margin-top: 13px;
|
margin: 13px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@media screen and (max-width: $break-small) {
|
@media screen and (max-width: $break-small) {
|
||||||
margin-top: 0px;
|
padding: 13px 0;
|
||||||
|
margin: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__form-header, &__form-header-copy {
|
&__form-header,
|
||||||
|
&__form-header-copy {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
|
@ -372,7 +372,7 @@ SendTransactionScreen.prototype.renderForm = function () {
|
|||||||
|
|
||||||
this.renderGasRow(),
|
this.renderGasRow(),
|
||||||
|
|
||||||
this.renderMemoRow(),
|
// this.renderMemoRow(),
|
||||||
|
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
@ -381,9 +381,9 @@ SendTransactionScreen.prototype.renderFooter = function () {
|
|||||||
const {
|
const {
|
||||||
goHome,
|
goHome,
|
||||||
clearSend,
|
clearSend,
|
||||||
errors: { amount: amountError, to: toError }
|
errors: { amount: amountError, to: toError },
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
const noErrors = amountError === null && toError === null
|
const noErrors = amountError === null && toError === null
|
||||||
const errorClass = noErrors ? '' : '__disabled'
|
const errorClass = noErrors ? '' : '__disabled'
|
||||||
|
|
||||||
@ -395,6 +395,7 @@ SendTransactionScreen.prototype.renderFooter = function () {
|
|||||||
},
|
},
|
||||||
}, 'Cancel'),
|
}, 'Cancel'),
|
||||||
h(`button.send-v2__next-btn${errorClass}`, {
|
h(`button.send-v2__next-btn${errorClass}`, {
|
||||||
|
onClick: event => this.onSubmit(event),
|
||||||
}, 'Next'),
|
}, 'Next'),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
@ -435,8 +436,15 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
|
|||||||
selectedToken,
|
selectedToken,
|
||||||
toAccounts,
|
toAccounts,
|
||||||
clearSend,
|
clearSend,
|
||||||
|
errors: { amount: amountError, to: toError },
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
|
const noErrors = amountError === null && toError === null
|
||||||
|
|
||||||
|
if (!noErrors) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.addToAddressBookIfNew(to)
|
this.addToAddressBookIfNew(to)
|
||||||
|
|
||||||
const txParams = {
|
const txParams = {
|
||||||
|
Loading…
Reference in New Issue
Block a user