Skip to content

Commit 3a13ba9

Browse files
author
tiendn
committed
fix: missing import
1 parent 34faa26 commit 3a13ba9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

views/tokens/[instance]/tabs/NftProperties/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import CardInfo, { CardRowItem } from 'components/Card/CardInfo'
22
import { useCallback } from 'react'
3+
import { TransactionCardTypeEnum } from 'utils/enum'
34

45
interface Props {
56
tokenData: TokenNFTMetadata
@@ -13,7 +14,7 @@ const NftPropertiesTab = ({ tokenData }: Props) => {
1314
if (item !== undefined && item !== null)
1415
items.push({
1516
label: item.trait_type,
16-
type: 'text',
17+
type: TransactionCardTypeEnum.TEXT,
1718
contents: [{ value: item.value }]
1819
})
1920
}

views/transactions/LogItem.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import clsx from 'clsx'
22
import CardInfo, { CardRowItem } from 'components/Card/CardInfo'
33
import { EventDecode } from 'components/Card/CardInfo/Components/Decode'
4+
import { TransactionCardTypeEnum } from 'utils/enum'
45
import styles from './style.module.scss'
56

67
export type LogElementProps = {
@@ -43,7 +44,7 @@ export default function LogElement({
4344
if (address && showAddress) {
4445
items.push({
4546
label: 'Address:',
46-
type: 'text',
47+
type: TransactionCardTypeEnum.TEXT,
4748
contents: [{ value: addressName ? `${addressName} | ${address}` : address }],
4849
responsive: {
4950
ellipsis: false,
@@ -54,7 +55,7 @@ export default function LogElement({
5455
if (callRow) {
5556
items.push({
5657
label: '',
57-
type: 'text',
58+
type: TransactionCardTypeEnum.TEXT,
5859
contents: [{ value: callRow }],
5960
responsive: {
6061
ellipsis: false,
@@ -67,7 +68,7 @@ export default function LogElement({
6768
if (verified || useDraftAbiToDecode) {
6869
items.push({
6970
label: 'Decode:',
70-
type: 'decode',
71+
type: TransactionCardTypeEnum.DECODE,
7172
contents: [
7273
{
7374
decode: {
@@ -106,7 +107,7 @@ export default function LogElement({
106107
}
107108
items.push({
108109
label: label,
109-
type: 'text',
110+
type: TransactionCardTypeEnum.TEXT,
110111
contents: [{ value: `[${idx}] ${topics[idx]}` }],
111112
responsive: {
112113
ellipsis: false,
@@ -117,7 +118,7 @@ export default function LogElement({
117118
if (data) {
118119
items.push({
119120
label: 'Data:',
120-
type: 'text',
121+
type: TransactionCardTypeEnum.TEXT,
121122
contents: [{ value: data }],
122123
responsive: {
123124
ellipsis: false,
@@ -128,7 +129,7 @@ export default function LogElement({
128129
if (index) {
129130
items.push({
130131
label: 'Log Index:',
131-
type: 'text',
132+
type: TransactionCardTypeEnum.TEXT,
132133
contents: [{ value: index }]
133134
})
134135
}

0 commit comments

Comments
 (0)