|
|
@ -49,7 +49,6 @@ let mouseTimer: any = { |
|
|
|
|
|
|
|
|
|
|
|
export const FlatTree = (props: FlatTreeProps) => { |
|
|
|
export const FlatTree = (props: FlatTreeProps) => { |
|
|
|
const { files, flatTree, expandPath, focusEdit, editModeOff, handleTreeClick, moveFile, moveFolder, fileState, focusElement, handleClickFolder } = props |
|
|
|
const { files, flatTree, expandPath, focusEdit, editModeOff, handleTreeClick, moveFile, moveFolder, fileState, focusElement, handleClickFolder } = props |
|
|
|
//const [flatTree, setFlatTree] = useState<{ [x: string]: FileType }>({})
|
|
|
|
|
|
|
|
const [hover, setHover] = useState<string>('') |
|
|
|
const [hover, setHover] = useState<string>('') |
|
|
|
const [mouseOverTarget, setMouseOverTarget] = useState<{ |
|
|
|
const [mouseOverTarget, setMouseOverTarget] = useState<{ |
|
|
|
path: string, |
|
|
|
path: string, |
|
|
@ -297,4 +296,4 @@ export const FlatTree = (props: FlatTreeProps) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</>) |
|
|
|
</>) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|