Skip to content

Commit

Permalink
fix: missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Mar 28, 2023
1 parent 34faa26 commit 3a13ba9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion views/tokens/[instance]/tabs/NftProperties/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import CardInfo, { CardRowItem } from 'components/Card/CardInfo'
import { useCallback } from 'react'
import { TransactionCardTypeEnum } from 'utils/enum'

interface Props {
tokenData: TokenNFTMetadata
Expand All @@ -13,7 +14,7 @@ const NftPropertiesTab = ({ tokenData }: Props) => {
if (item !== undefined && item !== null)
items.push({
label: item.trait_type,
type: 'text',
type: TransactionCardTypeEnum.TEXT,
contents: [{ value: item.value }]
})
}
Expand Down
13 changes: 7 additions & 6 deletions views/transactions/LogItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import clsx from 'clsx'
import CardInfo, { CardRowItem } from 'components/Card/CardInfo'
import { EventDecode } from 'components/Card/CardInfo/Components/Decode'
import { TransactionCardTypeEnum } from 'utils/enum'
import styles from './style.module.scss'

export type LogElementProps = {
Expand Down Expand Up @@ -43,7 +44,7 @@ export default function LogElement({
if (address && showAddress) {
items.push({
label: 'Address:',
type: 'text',
type: TransactionCardTypeEnum.TEXT,
contents: [{ value: addressName ? `${addressName} | ${address}` : address }],
responsive: {
ellipsis: false,
Expand All @@ -54,7 +55,7 @@ export default function LogElement({
if (callRow) {
items.push({
label: '',
type: 'text',
type: TransactionCardTypeEnum.TEXT,
contents: [{ value: callRow }],
responsive: {
ellipsis: false,
Expand All @@ -67,7 +68,7 @@ export default function LogElement({
if (verified || useDraftAbiToDecode) {
items.push({
label: 'Decode:',
type: 'decode',
type: TransactionCardTypeEnum.DECODE,
contents: [
{
decode: {
Expand Down Expand Up @@ -106,7 +107,7 @@ export default function LogElement({
}
items.push({
label: label,
type: 'text',
type: TransactionCardTypeEnum.TEXT,
contents: [{ value: `[${idx}] ${topics[idx]}` }],
responsive: {
ellipsis: false,
Expand All @@ -117,7 +118,7 @@ export default function LogElement({
if (data) {
items.push({
label: 'Data:',
type: 'text',
type: TransactionCardTypeEnum.TEXT,
contents: [{ value: data }],
responsive: {
ellipsis: false,
Expand All @@ -128,7 +129,7 @@ export default function LogElement({
if (index) {
items.push({
label: 'Log Index:',
type: 'text',
type: TransactionCardTypeEnum.TEXT,
contents: [{ value: index }]
})
}
Expand Down

0 comments on commit 3a13ba9

Please sign in to comment.