From 41f2a3771022a4f1851221a5370425ddd86ec0fc Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 25 Jan 2023 12:58:12 +0100 Subject: [PATCH] clean up filesystemprovider and context --- libs/remix-ui/workspace/src/lib/contexts/index.ts | 3 --- .../workspace/src/lib/providers/FileSystemProvider.tsx | 1 - 2 files changed, 4 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/contexts/index.ts b/libs/remix-ui/workspace/src/lib/contexts/index.ts index d6160c4c9e..5627acdf0a 100644 --- a/libs/remix-ui/workspace/src/lib/contexts/index.ts +++ b/libs/remix-ui/workspace/src/lib/contexts/index.ts @@ -1,13 +1,10 @@ import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel/type' import { createContext, SyntheticEvent } from 'react' import { BrowserState } from '../reducers/workspace' -import { FilePanelType } from '../types' - export const FileSystemContext = createContext<{ fs: BrowserState, modal:(title: string | JSX.Element, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void, - plugin: FilePanelType dispatchInitWorkspace:() => Promise, dispatchFetchDirectory:(path: string) => Promise, dispatchAddInputField:(path: string, type: 'file' | 'folder') => Promise, diff --git a/libs/remix-ui/workspace/src/lib/providers/FileSystemProvider.tsx b/libs/remix-ui/workspace/src/lib/providers/FileSystemProvider.tsx index 144c7735d8..ffcd77abaa 100644 --- a/libs/remix-ui/workspace/src/lib/providers/FileSystemProvider.tsx +++ b/libs/remix-ui/workspace/src/lib/providers/FileSystemProvider.tsx @@ -245,7 +245,6 @@ export const FileSystemProvider = (props: WorkspaceProps) => { fs, modal, toast, - plugin, dispatchInitWorkspace, dispatchFetchDirectory, dispatchAddInputField,