From 8b309fa9c1b1f8dbcdce853fa272d79a193135ea Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Tue, 5 Dec 2023 20:37:05 +0100 Subject: [PATCH] Folders --- apps/dashboard/src/components/tables/vault/upload-zone.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/components/tables/vault/upload-zone.tsx b/apps/dashboard/src/components/tables/vault/upload-zone.tsx index cad0bffe61..7a4824e32d 100644 --- a/apps/dashboard/src/components/tables/vault/upload-zone.tsx +++ b/apps/dashboard/src/components/tables/vault/upload-zone.tsx @@ -15,7 +15,7 @@ import { useToast } from "@midday/ui/use-toast"; import { cn } from "@midday/ui/utils"; import { useAction } from "next-safe-action/hook"; import { useParams } from "next/navigation"; -import { useCallback, useEffect, useRef, useState } from "react"; +import { useEffect, useRef, useState } from "react"; import { useDropzone } from "react-dropzone"; export function UploadZone({ children }) { @@ -60,7 +60,7 @@ export function UploadZone({ children }) { }, }); - const onDrop = useCallback(async (files) => { + const onDrop = async (files) => { setShowProgress(true); const { data: userData } = await getCurrentUserTeamQuery(supabase); @@ -107,7 +107,7 @@ export function UploadZone({ children }) { title: "Something went wrong please try again.", }); } - }, []); + }; const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop });