Skip to content

Commit

Permalink
Folders
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 5, 2023
1 parent 648f170 commit 8b309fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/dashboard/src/components/tables/vault/upload-zone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -107,7 +107,7 @@ export function UploadZone({ children }) {
title: "Something went wrong please try again.",
});
}
}, []);
};

const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop });

Expand Down

0 comments on commit 8b309fa

Please sign in to comment.