From 4a13ed8a71fe16dbdd6459bb00db5ad55f2336ff Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 26 Jan 2024 14:09:58 +0530 Subject: [PATCH] hide option from context menu --- .../workspace/src/lib/actions/workspace.ts | 4 ++-- libs/remix-ui/workspace/src/lib/utils/index.ts | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 31ec69ab99..7e015b6237 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -268,9 +268,9 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe // const auth = 'Basic ' + Buffer.from(projectId + ':' + projectSecret).toString('base64') const ipfs = IpfsHttpClient({ port, host, protocol - , headers: { + // , headers: { // authorization: auth - } + // } }) const hashed = bufferToHex(hash.keccakFromString(params.shareCode)) diff --git a/libs/remix-ui/workspace/src/lib/utils/index.ts b/libs/remix-ui/workspace/src/lib/utils/index.ts index d55f533228..7af6507785 100644 --- a/libs/remix-ui/workspace/src/lib/utils/index.ts +++ b/libs/remix-ui/workspace/src/lib/utils/index.ts @@ -59,13 +59,13 @@ export const contextMenuActions: MenuItems = [{ label: '', group: 1 }, { - id: 'copyShareURL', - name: 'Copy share URL', - type: ['file'], - multiselect: false, - label: '', - group: 1 -}, { +// id: 'copyShareURL', +// name: 'Copy share URL', +// type: ['file'], +// multiselect: false, +// label: '', +// group: 1 +// }, { id: 'download', name: 'Download', type: ['file', 'folder', 'workspace'],