|
|
@ -54,13 +54,13 @@ export const FileRender = (props: RenderFileProps) => { |
|
|
|
const handleFolderClick = (event: SyntheticEvent) => { |
|
|
|
const handleFolderClick = (event: SyntheticEvent) => { |
|
|
|
event.stopPropagation() |
|
|
|
event.stopPropagation() |
|
|
|
if (props.focusEdit.element !== file.path) props.handleClickFolder(file.path, file.type) |
|
|
|
if (props.focusEdit.element !== file.path) props.handleClickFolder(file.path, file.type) |
|
|
|
props.hideIconsMenu(!props.showIconsMenu) |
|
|
|
if (props.showIconsMenu === true) props.hideIconsMenu(!props.showIconsMenu) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const handleFileClick = (event: SyntheticEvent) => { |
|
|
|
const handleFileClick = (event: SyntheticEvent) => { |
|
|
|
event.stopPropagation() |
|
|
|
event.stopPropagation() |
|
|
|
if (props.focusEdit.element !== file.path) props.handleClickFile(file.path, file.type) |
|
|
|
if (props.focusEdit.element !== file.path) props.handleClickFile(file.path, file.type) |
|
|
|
props.hideIconsMenu(!props.showIconsMenu) |
|
|
|
if (props.showIconsMenu === true) props.hideIconsMenu(!props.showIconsMenu) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const handleContextMenu = (event: PointerEvent) => { |
|
|
|
const handleContextMenu = (event: PointerEvent) => { |
|
|
|