@ -4,7 +4,7 @@ import { FileExplorerContextMenuProps } from './types'
import './css/file-explorer-context-menu.css'
export const FileExplorerContextMenu = ( props : FileExplorerContextMenuProps ) = > {
const { actions , createNewFile , createNewFolder , deletePath , renamePath , hideContextMenu , publishToGist , runScript , emit , pageX , pageY , path , type , . . . otherProps } = props
const { actions , createNewFile , createNewFolder , deletePath , renamePath , hideContextMenu , pushChangesToGist , pu blishFileToGist , publishFolder ToGist , runScript , emit , pageX , pageY , path , type , . . . otherProps } = props
const contextMenuRef = useRef ( null )
useEffect ( ( ) = > {
@ -50,13 +50,13 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
deletePath ( path )
break
case 'Push changes to gist' :
publi shToGist ( path , type )
pushChanges ToGist ( path , type )
break
case 'Publish folder to gist' :
publishToGist ( path , type )
publishFolder ToGist ( path , type )
break
case 'Publish file to gist' :
publishToGist ( path , type )
publishFile ToGist ( path , type )
break
case 'Run' :
runScript ( path )