Implemented flow add when dropping json
This commit is contained in:
parent
539e508e12
commit
2c99d2ce70
1 changed files with 3 additions and 1 deletions
|
|
@ -54,7 +54,9 @@ export default function HomePage(): JSX.Element {
|
||||||
const fileDrop = (e) => {
|
const fileDrop = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
setIsDragging(false);
|
setIsDragging(false);
|
||||||
// Handle file drop logic here
|
if (e.dataTransfer.types.some((types) => types === "Files")) {
|
||||||
|
uploadFlow(true, e.dataTransfer.files.item(0)!);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Personal flows display
|
// Personal flows display
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue