s/Cancel/Reject/ on confirm screen for clarity

feature/default_network_editable
Whymarrh Whitby 6 years ago
parent 0fa9299cd1
commit 7610248f8c
  1. 6
      app/_locales/en/messages.json
  2. 3
      ui/app/components/confirm-page-container/confirm-page-container.component.js

@ -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"
}, },

@ -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>

Loading…
Cancel
Save