11/**
22 * Copyright 2018 Shift Devices AG
3- * Copyright 2021 Shift Crypto AG
3+ * Copyright 2021-2024 Shift Crypto AG
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import { translate, TranslateProps } from '../../decorators/translate';
2121import { A } from '../anchor/anchor' ;
2222import { Dialog } from '../dialog/dialog' ;
2323import { CopyableInput } from '../copy/Copy' ;
24- import { ExpandIcon } from '../icon/icon' ;
24+ import { Warning , ExpandIcon } from '../icon/icon' ;
2525import { ProgressRing } from '../progressRing/progressRing' ;
2626import { FiatConversion } from '../rates/rates' ;
2727import { Amount } from '../../components/amount/amount' ;
@@ -94,15 +94,17 @@ class Transaction extends Component<Props, State> {
9494 transactionDialog,
9595 transactionInfo,
9696 } = this . state ;
97- const arrow = type === 'receive' ? (
97+ const arrow = status === 'failed' ? (
98+ < Warning style = { { maxWidth : '18px' } } />
99+ ) : type === 'receive' ? (
98100 < ArrowIn />
99101 ) : type === 'send' ? (
100102 < ArrowOut />
101103 ) : (
102104 < ArrowSelf />
103105 ) ;
104106 const sign = ( ( type === 'send' ) && '−' ) || ( ( type === 'receive' ) && '+' ) || '' ;
105- const typeClassName = ( type === 'send' && style . send ) || ( type === 'receive' && style . receive ) || '' ;
107+ const typeClassName = ( status === 'failed' && style . failed ) || ( type === 'send' && style . send ) || ( type === 'receive' && style . receive ) || '' ;
106108 const sDate = time ? this . parseTimeShort ( time ) : '---' ;
107109 const statusText = {
108110 complete : t ( 'transaction.status.complete' ) ,
0 commit comments