Skip to content

Commit

Permalink
fix: temporarily remove context menus
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jan 14, 2021
1 parent 619c88e commit 1f2a9c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions app/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ export const SUPPORTED_BTC_ADDRESS_FORMATS = ['p2pkh', 'p2sh'] as const;
export const features = {
stacking: true,
lifetimeRewards: false,
txContentMenus: false,
};

0 comments on commit 1f2a9c7

Please sign in to comment.