diff --git a/app/components/home/transaction-list/transaction-list-context-menu.ts b/app/components/home/transaction-list/transaction-list-context-menu.ts index 8263acd52..4f604bf94 100644 --- a/app/components/home/transaction-list/transaction-list-context-menu.ts +++ b/app/components/home/transaction-list/transaction-list-context-menu.ts @@ -1,6 +1,7 @@ import { Transaction } from '@blockstack/stacks-blockchain-api-types'; import { hasMemo, getRecipientAddress } from '@utils/tx-utils'; +import { features } from '../../../constants/index'; export function registerHandler(el: HTMLButtonElement | null, handler: (e: Event) => void) { if (el === null) return; @@ -25,6 +26,7 @@ interface TxListContextMenu { export function createTxListContextMenu(event: Event, { tx, copy }: TxListContextMenu) { event.preventDefault(); + if (!features.txContentMenus) return; const menuItems: { menu: Electron.MenuItemConstructorOptions; textToCopy?: string }[] = [ { menu: { diff --git a/app/constants/index.ts b/app/constants/index.ts index b9c31d3bf..08dab140c 100644 --- a/app/constants/index.ts +++ b/app/constants/index.ts @@ -30,4 +30,5 @@ export const SUPPORTED_BTC_ADDRESS_FORMATS = ['p2pkh', 'p2sh'] as const; export const features = { stacking: true, lifetimeRewards: false, + txContentMenus: false, };