Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DnD on storage #2084

Merged
merged 14 commits into from
Apr 25, 2022
Prev Previous commit
Next Next commit
reset in files
tanmoyAtb committed Apr 10, 2022
commit 342b7585bb3266d9c74610b5b031acaa518b510d
Original file line number Diff line number Diff line change
@@ -382,6 +382,7 @@ const FileSystemItem = ({
canDrop: (item) => isFolder && !item.ids.includes(file.cid),
drop: (item: { ids: string[]}) => {
moveItems && moveItems(item.ids, getPathWithFile(currentPath, name))
resetSelectedFiles()
},
collect: (monitor) => ({
isOverMove: monitor.isOver() && !monitor.getItem<{ids: string[]}>().ids.includes(file.cid)