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:
nestordominguez 2020-01-27 11:29:54 -03:00 committed by Sean Yesmunt
parent ac5575beca
commit 64a442e60d
2 changed files with 3 additions and 1 deletions

View file

@ -157,6 +157,7 @@
"Details": "Details",
"Transaction": "Transaction",
"Date": "Date",
"Abandon Support": "Abandon Support",
"Abandon Claim": "Abandon Claim",
"Find New Tags To Follow": "Find New Tags To Follow",
"Aw shucks!": "Aw shucks!",

View file

@ -28,7 +28,8 @@ class TransactionListItem extends React.PureComponent<Props> {
if (type === TXN_TYPES.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() {