clean up filesystemprovider and context

pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent 23003afce8
commit 0539b44513
  1. 3
      libs/remix-ui/workspace/src/lib/contexts/index.ts
  2. 1
      libs/remix-ui/workspace/src/lib/providers/FileSystemProvider.tsx

@ -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<void>,
dispatchFetchDirectory:(path: string) => Promise<void>,
dispatchAddInputField:(path: string, type: 'file' | 'folder') => Promise<void>,

@ -245,7 +245,6 @@ export const FileSystemProvider = (props: WorkspaceProps) => {
fs,
modal,
toast,
plugin,
dispatchInitWorkspace,
dispatchFetchDirectory,
dispatchAddInputField,

Loading…
Cancel
Save