From d4b4081833c7366bb76a966455acfdc2787f3bed Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 14 May 2021 20:46:13 +0100 Subject: [PATCH] Add usecase for files --- .../file-explorer/src/lib/file-explorer-context-menu.tsx | 6 ++++++ libs/remix-ui/file-explorer/src/lib/file-explorer.tsx | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx b/libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx index 81bd7aa5e9..2deb23e96a 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx @@ -52,6 +52,12 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) => case 'Push changes to gist': publishToGist(path, type) break + case 'Publish folder to gist': + publishToGist(path, type) + break + case 'Publish file to gist': + publishToGist(path, type) + break case 'Run': runScript(path) break diff --git a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx index a93b801ec9..188c805084 100644 --- a/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx +++ b/libs/remix-ui/file-explorer/src/lib/file-explorer.tsx @@ -58,7 +58,7 @@ export const FileExplorer = (props: FileExplorerProps) => { pattern: [] }, { id: 'pushChangesToGist', - name: 'Push back changes to gist', + name: 'Push changes to gist', type: ['gist'], path: [], extension: [], @@ -70,6 +70,13 @@ export const FileExplorer = (props: FileExplorerProps) => { path: [], extension: [], pattern: [] + }, { + id: 'publishFileToGist', + name: 'Publish file to gist', + type: ['file'], + path: [], + extension: [], + pattern: [] }, { id: 'run', name: 'Run',