diff --git a/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte b/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte index e4c441d..9e9572c 100644 --- a/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte +++ b/frontend/src/lib/components/dashboard/DashboardUploadCard.svelte @@ -5,22 +5,23 @@ export let filetype: 'PDF' | 'ZIP'; export let filesize: string; - let dashAnimationProgress = 0; - let dashAnimationInterval: NodeJS.Timer; + import FileDrop from 'filedrop-svelte'; - const dashAnimationStart = () => { - dashAnimationInterval = setInterval(() => { - dashAnimationProgress += 1; - if (dashAnimationProgress == 20) { - dashAnimationProgress = 0; - } - }, 30); - }; + let dashAnimationProgress = 0; + let dashAnimationInterval: NodeJS.Timer; - const dashAnimationStop = () => { - clearInterval(dashAnimationInterval); - }; + const dashAnimationStart = () => { + dashAnimationInterval = setInterval(() => { + dashAnimationProgress += 1; + if (dashAnimationProgress == 20) { + dashAnimationProgress = 0; + } + }, 30); + }; + const dashAnimationStop = () => { + clearInterval(dashAnimationInterval); + };