From 2bc568ef532df074508de86b270d5debf4133fc6 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 20 Jun 2024 16:15:49 +0100 Subject: [PATCH] remove console log --- .../workspace/src/lib/remix-ui-workspace.tsx | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 5ffc6d2056..27d4290510 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -50,7 +50,6 @@ export function Workspace() { const currentBranch = selectedWorkspace ? selectedWorkspace.currentBranch : null const [canPaste, setCanPaste] = useState(false) - console.log('what is plugin here ', global.plugin.contentImport) const [state, setState] = useState({ ctrlKey: false, @@ -241,12 +240,11 @@ export function Workspace() { return { ...prevState, actions } }) } - - const importFromIpfs = () => showModalForIpfsImport() - - const importFromHttps = () => { - return '' - } + /** + * show modal for either ipfs or https icons in file explorer menu + * @returns void + */ + const importFromUrl = () => showModalForIpfsImport() const cloneGitRepository = () => { global.modal( @@ -1146,8 +1144,8 @@ export function Workspace() { createNewFolder={handleNewFolderInput} deletePath={deletePath} renamePath={editModeOn} - importFromHttps={importFromHttps} - importFromIpfs={importFromIpfs} + importFromIpfs={importFromUrl} + importFromHttps={importFromUrl} /> )} @@ -1212,8 +1210,8 @@ export function Workspace() { deletePath={deletePath} renamePath={editModeOn} dragStatus={dragStatus} - importFromHttps={importFromHttps} - importFromIpfs={importFromIpfs} + importFromIpfs={importFromUrl} + importFromHttps={importFromUrl} /> )}