1
1
/**
2
2
* Copyright 2018 Shift Devices AG
3
- * Copyright 2021 Shift Crypto AG
3
+ * Copyright 2021-2024 Shift Crypto AG
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import { translate, TranslateProps } from '../../decorators/translate';
21
21
import { A } from '../anchor/anchor' ;
22
22
import { Dialog } from '../dialog/dialog' ;
23
23
import { CopyableInput } from '../copy/Copy' ;
24
- import { ExpandIcon } from '../icon/icon' ;
24
+ import { Warning , ExpandIcon } from '../icon/icon' ;
25
25
import { ProgressRing } from '../progressRing/progressRing' ;
26
26
import { FiatConversion } from '../rates/rates' ;
27
27
import { Amount } from '../../components/amount/amount' ;
@@ -94,15 +94,17 @@ class Transaction extends Component<Props, State> {
94
94
transactionDialog,
95
95
transactionInfo,
96
96
} = this . state ;
97
- const arrow = type === 'receive' ? (
97
+ const arrow = status === 'failed' ? (
98
+ < Warning style = { { maxWidth : '18px' } } />
99
+ ) : type === 'receive' ? (
98
100
< ArrowIn />
99
101
) : type === 'send' ? (
100
102
< ArrowOut />
101
103
) : (
102
104
< ArrowSelf />
103
105
) ;
104
106
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 ) || '' ;
106
108
const sDate = time ? this . parseTimeShort ( time ) : '---' ;
107
109
const statusText = {
108
110
complete : t ( 'transaction.status.complete' ) ,
0 commit comments