diff --git a/src/components/transactions/TransactionItem.tsx b/src/components/transactions/TransactionItem.tsx index f8c93f1..c8a7918 100644 --- a/src/components/transactions/TransactionItem.tsx +++ b/src/components/transactions/TransactionItem.tsx @@ -14,7 +14,7 @@ import { KristValue } from "../KristValue"; import { KristNameLink } from "../KristNameLink"; import { ContextualAddress } from "../ContextualAddress"; -import { getTransactionType, TransactionType, TYPES_SHOW_VALUE } from "./TransactionType"; +import { getTransactionType, TransactionType, INTERNAL_TYPES_SHOW_VALUE } from "./TransactionType"; const MAX_A_LENGTH = 24; @@ -126,7 +126,7 @@ - {TYPES_SHOW_VALUE.includes(type) + {INTERNAL_TYPES_SHOW_VALUE.includes(type) ? ( // Transaction value diff --git a/src/components/transactions/TransactionType.tsx b/src/components/transactions/TransactionType.tsx index f770e16..3d0f288 100644 --- a/src/components/transactions/TransactionType.tsx +++ b/src/components/transactions/TransactionType.tsx @@ -15,7 +15,8 @@ export type InternalTransactionType = "transferred" | "sent" | "received" | "mined" | "name_a_record" | "name_transferred" | "name_sent" | "name_received" | "name_purchased" | "unknown"; -export const TYPES_SHOW_VALUE = ["transferred", "sent", "received", "mined", "name_purchased"]; +export const INTERNAL_TYPES_SHOW_VALUE = ["transferred", "sent", "received", "mined", "name_purchased"]; +export const TYPES_SHOW_VALUE = ["transfer", "mined", "name_purchase"]; export function getTransactionType(tx: KristTransaction, from?: Wallet, to?: Wallet): InternalTransactionType { switch (tx.type) { diff --git a/src/pages/transactions/TransactionsTable.tsx b/src/pages/transactions/TransactionsTable.tsx index 9ab41c4..1e0ee8b 100644 --- a/src/pages/transactions/TransactionsTable.tsx +++ b/src/pages/transactions/TransactionsTable.tsx @@ -11,7 +11,7 @@ import { ListingType } from "./TransactionsPage"; -import { TransactionType } from "../../components/transactions/TransactionType"; +import { TransactionType, TYPES_SHOW_VALUE } from "../../components/transactions/TransactionType"; import { ContextualAddress } from "../../components/ContextualAddress"; import { KristValue } from "../../components/KristValue"; import { KristNameLink } from "../../components/KristNameLink"; @@ -166,7 +166,9 @@ title: t("transactions.columnValue"), dataIndex: "value", key: "value", - render: value => , + render: (value, tx) => TYPES_SHOW_VALUE.includes(tx.type) && ( + + ), width: 100, sorter: true