Update flat-tree.tsx

LianaHus-patch-7
bunsenstraat 11 months ago committed by GitHub
parent 7a32e6da30
commit ddf3b9e1d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      libs/remix-ui/workspace/src/lib/components/flat-tree.tsx

@ -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>
</>) </>)
} }

Loading…
Cancel
Save