fix duplicate fs context
This commit is contained in:
parent
cfda844339
commit
c21f33f696
1 changed files with 1 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ import { MenuItem } from 'primereact/menuitem';
|
|||
import { TreeSelect } from 'primereact/treeselect';
|
||||
import TreeNode from 'primereact/treenode';
|
||||
import { Menu } from 'primereact/menu';
|
||||
import { getParentDir } from '../fs/filesystem';
|
||||
import { FSContext, getParentDir } from '../fs/filesystem';
|
||||
import { buildUrlForStateParams } from '../state/fragment-state';
|
||||
import { blankProjectState } from '../state/initial-state';
|
||||
|
||||
|
|
@ -23,8 +23,6 @@ loader.init().then(mi => monacoInstance = mi);
|
|||
|
||||
const isFileWritable = (path: string) => getParentDir(path) === '/home'
|
||||
|
||||
const FSContext = React.createContext<FS | undefined>(undefined);
|
||||
|
||||
function listFilesAsNodes(fs: FS, path: string): TreeNode[] {
|
||||
const files: [string, string][] = []
|
||||
const dirs: [string, string][] = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue