@ -8,7 +8,7 @@ import { browserReducer, browserInitialState } from '../reducers/workspace'
import { initWorkspace , fetchDirectory , removeInputField , deleteWorkspace , clearPopUp , publishToGist , createNewFile , setFocusElement , createNewFolder ,
import { initWorkspace , fetchDirectory , removeInputField , deleteWorkspace , clearPopUp , publishToGist , createNewFile , setFocusElement , createNewFolder ,
deletePath , renamePath , copyFile , copyFolder , runScript , emitContextMenuEvent , handleClickFile , handleExpandPath , addInputField , createWorkspace ,
deletePath , renamePath , copyFile , copyFolder , runScript , emitContextMenuEvent , handleClickFile , handleExpandPath , addInputField , createWorkspace ,
fetchWorkspaceDirectory , renameWorkspace , switchToWorkspace , uploadFile , handleDownloadFiles , restoreBackupZip , cloneRepository , moveFile , moveFolder ,
fetchWorkspaceDirectory , renameWorkspace , switchToWorkspace , uploadFile , handleDownloadFiles , restoreBackupZip , cloneRepository , moveFile , moveFolder ,
showAllBranches , switchBranch , createNewBranch , checkoutRemoteBranch
showAllBranches , switchBranch , createNewBranch , checkoutRemoteBranch , createSolidityGithubAction
} from '../actions'
} from '../actions'
import { Modal , WorkspaceProps , WorkspaceTemplate } from '../types'
import { Modal , WorkspaceProps , WorkspaceTemplate } from '../types'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@ -155,6 +155,10 @@ export const FileSystemProvider = (props: WorkspaceProps) => {
await checkoutRemoteBranch ( branch , remote )
await checkoutRemoteBranch ( branch , remote )
}
}
const dispatchCreateSolidityGithubAction = async ( ) = > {
await createSolidityGithubAction ( )
}
useEffect ( ( ) = > {
useEffect ( ( ) = > {
dispatchInitWorkspace ( )
dispatchInitWorkspace ( )
} , [ ] )
} , [ ] )
@ -263,7 +267,8 @@ export const FileSystemProvider = (props: WorkspaceProps) => {
dispatchShowAllBranches ,
dispatchShowAllBranches ,
dispatchSwitchToBranch ,
dispatchSwitchToBranch ,
dispatchCreateNewBranch ,
dispatchCreateNewBranch ,
dispatchCheckoutRemoteBranch
dispatchCheckoutRemoteBranch ,
dispatchCreateSolidityGithubAction
}
}
return (
return (
< FileSystemContext.Provider value = { value } >
< FileSystemContext.Provider value = { value } >