fix: use icons for transaction list actions

This commit is contained in:
Sean Yesmunt 2018-04-23 01:08:55 -04:00
parent 94fca29323
commit 1e138112dd
2 changed files with 4 additions and 2 deletions

View file

@ -7,6 +7,7 @@ import Button from 'component/button';
import { buildURI } from 'lbry-redux';
import * as txnTypes from 'constants/transaction_types';
import type { Transaction } from '../view';
import * as ICONS from 'constants/icons';
type Props = {
transaction: Transaction,
@ -32,9 +33,9 @@ class TransactionListItem extends React.PureComponent<Props> {
getLink(type: string) {
if (type === txnTypes.TIP) {
return <Button button="link" onClick={this.abandonClaim} label={__('Unlock Tip')} />;
return <Button icon={ICONS.UNLOCK} onClick={this.abandonClaim} title={__('Unlock Tip')} />;
}
return <Button button="link" onClick={this.abandonClaim} label={__('Abandon Claim')} />;
return <Button icon={ICONS.TRASH} onClick={this.abandonClaim} title={__('Abandon Claim')} />;
}
capitalize(string: string) {

View file

@ -23,3 +23,4 @@ export const HOME = 'Home';
export const PHONE = 'Phone';
export const CHECK = 'CheckCircle';
export const HEART = 'Heart';
export const UNLOCK = 'Unlock';