clean up utils/index.ts

pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent 0539b44513
commit 74d609ed51
  1. 3
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
  2. 1
      libs/remix-ui/workspace/src/lib/types/index.ts
  3. 3
      libs/remix-ui/workspace/src/lib/utils/index.ts

@ -35,7 +35,6 @@ export function Workspace () {
const initGitRepoRef = useRef<HTMLInputElement>()
const filteredBranches = selectedWorkspace ? (selectedWorkspace.branches || []).filter(branch => branch.name.includes(branchFilter) && branch.name !== 'HEAD').slice(0, 20) : []
const currentBranch = selectedWorkspace ? selectedWorkspace.currentBranch : null
const plugin = global.plugin
useEffect(() => {
let workspaceName = localStorage.getItem('currentWorkspace')
@ -499,7 +498,6 @@ export function Workspace () {
removedContextMenuItems={global.fs.browser.contextMenu.removedMenuItems}
files={global.fs.browser.files}
fileState={global.fs.browser.fileState}
plugin={plugin}
expandPath={global.fs.browser.expandPath}
focusEdit={global.fs.focusEdit}
focusElement={global.fs.focusElement}
@ -539,7 +537,6 @@ export function Workspace () {
removedContextMenuItems={global.fs.localhost.contextMenu.removedMenuItems}
files={global.fs.localhost.files}
fileState={[]}
plugin={plugin}
expandPath={global.fs.localhost.expandPath}
focusEdit={global.fs.focusEdit}
focusElement={global.fs.focusElement}

@ -79,7 +79,6 @@ export interface FilePanelType extends ViewPlugin {
export interface FileExplorerProps {
name: string,
menuItems?: string[],
plugin: FilePanelType
contextMenuItems: MenuItems,
removedContextMenuItems: MenuItems,
files: { [x: string]: Record<string, FileType> },

@ -30,8 +30,7 @@ export const contextMenuActions: MenuItems = [{
extension: ['.js', '.ts'],
multiselect: false,
label: ''
},
{
},{
id: 'pushChangesToGist',
name: 'Push changes to gist',
type: ['gist'],

Loading…
Cancel
Save