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

s/Cancel/Reject/ on confirm screen for clarity

This commit is contained in:
Whymarrh Whitby 2018-09-24 01:46:52 -02:30
parent 0fa9299cd1
commit 7610248f8c
2 changed files with 8 additions and 1 deletions

View File

@ -784,6 +784,12 @@
"refundAddress": { "refundAddress": {
"message": "Your Refund Address" "message": "Your Refund Address"
}, },
"reject": {
"message": "Reject"
},
"rejectTxsN": {
"message": "Reject $1 transactions"
},
"rejected": { "rejected": {
"message": "Rejected" "message": "Rejected"
}, },

View File

@ -116,6 +116,7 @@ export default class ConfirmPageContainer extends Component {
} }
<PageContainerFooter <PageContainerFooter
onCancel={() => onCancel()} onCancel={() => onCancel()}
cancelText={this.context.t('reject')}
onSubmit={() => onSubmit()} onSubmit={() => onSubmit()}
submitText={this.context.t('confirm')} submitText={this.context.t('confirm')}
submitButtonType="confirm" submitButtonType="confirm"
@ -123,7 +124,7 @@ export default class ConfirmPageContainer extends Component {
> >
{unapprovedTxCount > 1 && ( {unapprovedTxCount > 1 && (
<a onClick={() => onCancelAll()}> <a onClick={() => onCancelAll()}>
{this.context.t('cancelN', [unapprovedTxCount])} {this.context.t('rejectTxsN', [unapprovedTxCount])}
</a> </a>
)} )}
</PageContainerFooter> </PageContainerFooter>