edit abandon claim to abandon support (#3514)
* edit abandon claim to abandon support * set abandon support or claim in title * add abandon suport claim title to app-strings
This commit is contained in:
parent
ac5575beca
commit
64a442e60d
2 changed files with 3 additions and 1 deletions
|
@ -157,6 +157,7 @@
|
||||||
"Details": "Details",
|
"Details": "Details",
|
||||||
"Transaction": "Transaction",
|
"Transaction": "Transaction",
|
||||||
"Date": "Date",
|
"Date": "Date",
|
||||||
|
"Abandon Support": "Abandon Support",
|
||||||
"Abandon Claim": "Abandon Claim",
|
"Abandon Claim": "Abandon Claim",
|
||||||
"Find New Tags To Follow": "Find New Tags To Follow",
|
"Find New Tags To Follow": "Find New Tags To Follow",
|
||||||
"Aw shucks!": "Aw shucks!",
|
"Aw shucks!": "Aw shucks!",
|
||||||
|
|
|
@ -28,7 +28,8 @@ class TransactionListItem extends React.PureComponent<Props> {
|
||||||
if (type === TXN_TYPES.TIP) {
|
if (type === TXN_TYPES.TIP) {
|
||||||
return <Button button="secondary" icon={ICONS.UNLOCK} onClick={this.abandonClaim} title={__('Unlock Tip')} />;
|
return <Button button="secondary" icon={ICONS.UNLOCK} onClick={this.abandonClaim} title={__('Unlock Tip')} />;
|
||||||
}
|
}
|
||||||
return <Button button="secondary" icon={ICONS.DELETE} onClick={this.abandonClaim} title={__('Abandon Claim')} />;
|
const abandonTitle = type === TXN_TYPES.SUPPORT ? 'Abandon Support' : 'Abandon Claim';
|
||||||
|
return <Button button="secondary" icon={ICONS.DELETE} onClick={this.abandonClaim} title={__(abandonTitle)} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
abandonClaim() {
|
abandonClaim() {
|
||||||
|
|
Loading…
Reference in a new issue