diff --git a/public/locales/en.json b/public/locales/en.json index 073f807..f6453c4 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -429,6 +429,7 @@ "name_sent": "Sent name", "name_received": "Received name", "name_purchased": "Purchased name", + "bumped": "Bumped", "unknown": "Unknown" } }, diff --git a/src/components/transactions/TransactionType.less b/src/components/transactions/TransactionType.less index 6ea5205..c0c1a41 100644 --- a/src/components/transactions/TransactionType.less +++ b/src/components/transactions/TransactionType.less @@ -15,6 +15,7 @@ &-sent a, &-name_sent a, &-name_purchased a { color: @kw-orange; } &-received a, &-mined a, &-name_received a { color: @kw-green; } &-name_a_record a { color: @kw-purple; } + &-bumped a { color: @kw-text-tertiary; } &-no-link a { cursor: default; diff --git a/src/components/transactions/TransactionType.tsx b/src/components/transactions/TransactionType.tsx index 22bf4c5..dbcb8f3 100644 --- a/src/components/transactions/TransactionType.tsx +++ b/src/components/transactions/TransactionType.tsx @@ -14,9 +14,9 @@ export type InternalTransactionType = "transferred" | "sent" | "received" | "mined" | "name_a_record" | "name_transferred" | "name_sent" | "name_received" | - "name_purchased" | "unknown"; + "name_purchased" | "bumped" | "unknown"; export const INTERNAL_TYPES_SHOW_VALUE: InternalTransactionType[] = [ - "transferred", "sent", "received", "mined", "name_purchased" + "transferred", "sent", "received", "mined", "name_purchased", "bumped" ]; export const TYPES_SHOW_VALUE: KristTransactionType[] = [ @@ -26,6 +26,7 @@ export function getTransactionType(tx: KristTransaction, from?: Wallet, to?: Wallet): InternalTransactionType { switch (tx.type) { case "transfer": + if (from && to && from === to) return "bumped"; if (from && to) return "transferred"; if (from) return "sent"; if (to) return "received";