Skip to content

Commit

Permalink
fix(activity-feed): add canceled state
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Dec 10, 2020
1 parent 870526b commit aac4392
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ type MessagesType = {
'copy.amount_sent': 'Amount Sent'
'copy.balance': 'Balance'
'copy.below_swap_min': 'Minimum Swap is {value}'
'copy.canceled': 'Canceled'
'copy.coin_network_fee': '{coin} Network Fee'
'copy.confirm_withdrawal': 'Confirm Withdrawal'
'copy.confirm_swap': 'Confirm Swap'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const IconTx = (props: Props) => {
case 'PENDING':
case 'PENDING_DEPOSIT':
return <SharedIconTx type='PENDING' />
case 'CANCELED':
case 'FAILED':
case 'REFUNDED':
case 'REJECTED':
Expand Down Expand Up @@ -199,6 +200,8 @@ export const Status = (props: Props) => {
return <FormattedMessage id='copy.failed' defaultMessage='Failed' />
case 'MANUAL_REVIEW':
return <FormattedMessage id='copy.in_review' defaultMessage='In Review' />
case 'CANCELED':
return <FormattedMessage id='copy.canceled' defaultMessage='Canceled' />
default:
return <FormattedMessage id='copy.pending' defaultMessage='Pending' />
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export type SBTransactionStateType =
| 'CLEARED'
| 'COMPLETE'
| 'REFUNDED'
| 'CANCELED'

export enum SBPendingTransactionStateEnum {
CLEARED = 'CLEARED',
Expand Down

0 comments on commit aac4392

Please sign in to comment.