1
1
import clsx from 'clsx'
2
2
import CardInfo , { CardRowItem } from 'components/Card/CardInfo'
3
3
import { EventDecode } from 'components/Card/CardInfo/Components/Decode'
4
+ import { TransactionCardTypeEnum } from 'utils/enum'
4
5
import styles from './style.module.scss'
5
6
6
7
export type LogElementProps = {
@@ -43,7 +44,7 @@ export default function LogElement({
43
44
if ( address && showAddress ) {
44
45
items . push ( {
45
46
label : 'Address:' ,
46
- type : 'text' ,
47
+ type : TransactionCardTypeEnum . TEXT ,
47
48
contents : [ { value : addressName ? `${ addressName } | ${ address } ` : address } ] ,
48
49
responsive : {
49
50
ellipsis : false ,
@@ -54,7 +55,7 @@ export default function LogElement({
54
55
if ( callRow ) {
55
56
items . push ( {
56
57
label : '' ,
57
- type : 'text' ,
58
+ type : TransactionCardTypeEnum . TEXT ,
58
59
contents : [ { value : callRow } ] ,
59
60
responsive : {
60
61
ellipsis : false ,
@@ -67,7 +68,7 @@ export default function LogElement({
67
68
if ( verified || useDraftAbiToDecode ) {
68
69
items . push ( {
69
70
label : 'Decode:' ,
70
- type : 'decode' ,
71
+ type : TransactionCardTypeEnum . DECODE ,
71
72
contents : [
72
73
{
73
74
decode : {
@@ -106,7 +107,7 @@ export default function LogElement({
106
107
}
107
108
items . push ( {
108
109
label : label ,
109
- type : 'text' ,
110
+ type : TransactionCardTypeEnum . TEXT ,
110
111
contents : [ { value : `[${ idx } ] ${ topics [ idx ] } ` } ] ,
111
112
responsive : {
112
113
ellipsis : false ,
@@ -117,7 +118,7 @@ export default function LogElement({
117
118
if ( data ) {
118
119
items . push ( {
119
120
label : 'Data:' ,
120
- type : 'text' ,
121
+ type : TransactionCardTypeEnum . TEXT ,
121
122
contents : [ { value : data } ] ,
122
123
responsive : {
123
124
ellipsis : false ,
@@ -128,7 +129,7 @@ export default function LogElement({
128
129
if ( index ) {
129
130
items . push ( {
130
131
label : 'Log Index:' ,
131
- type : 'text' ,
132
+ type : TransactionCardTypeEnum . TEXT ,
132
133
contents : [ { value : index } ]
133
134
} )
134
135
}
0 commit comments