diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index ba78be2d99..c2e949d751 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -22,30 +22,30 @@ "@midday/supabase": "workspace:*", "@midday/ui": "workspace:*", "@novu/headless": "^0.21.0", - "@trigger.dev/nextjs": "^2.2.7", + "@trigger.dev/nextjs": "^2.2.9", "@vercel/edge-config": "^0.4.1", "@vercel/toolbar": "^0.1.5", "@zip.js/zip.js": "^2.7.31", "change-case": "^5.2.0", - "framer-motion": "^10.16.5", - "next": "14.0.4-canary.18", + "framer-motion": "^10.16.8", + "next": "14.0.4-canary.28", "next-international": "^1.1.4", - "next-safe-action": "^5.1.3", + "next-safe-action": "^5.2.0", "next-themes": "^0.2.1", "next-usequerystate": "^1.13.0", "react": "18.2.0", "react-dom": "18.2.0", "react-dropzone": "^14.2.3", "react-hook-form": "^7.48.2", - "recharts": "^2.10.1", - "sharp": "^0.32.6", + "recharts": "^2.10.2", + "sharp": "^0.33.0", "zod": "^3.22.4" }, "devDependencies": { "@midday/tsconfig": "workspace:*", "@t3-oss/env-nextjs": "^0.7.1", - "@types/node": "^20.10.0", - "@types/react": "^18.2.38", + "@types/node": "^20.10.1", + "@types/react": "^18.2.39", "@types/react-dom": "^18.2.17", "typescript": "^5.3.2" } diff --git a/apps/dashboard/src/app/api/download/file/route.ts b/apps/dashboard/src/app/api/download/file/route.ts index 86046d1437..1b04a1551e 100644 --- a/apps/dashboard/src/app/api/download/file/route.ts +++ b/apps/dashboard/src/app/api/download/file/route.ts @@ -12,8 +12,6 @@ export async function GET(req, res) { const path = requestUrl.searchParams.get("path"); const filename = requestUrl.searchParams.get("filename"); - console.log(`${user.data.team_id}/${path}/${filename}`); - const { data } = await download(supabase, { bucket: "vault", path: `${user.data.team_id}/${path}/${filename}`, diff --git a/apps/dashboard/src/components/attachments.tsx b/apps/dashboard/src/components/attachments.tsx index 210be57296..1bbc18aaa1 100644 --- a/apps/dashboard/src/components/attachments.tsx +++ b/apps/dashboard/src/components/attachments.tsx @@ -2,7 +2,6 @@ import { createAttachmentsAction } from "@/actions/create-attachments-action"; import { deleteAttachmentAction } from "@/actions/delete-attachment-action"; -import { invalidateCacheAction } from "@/actions/invalidate-cache-action"; import { useUpload } from "@/hooks/use-upload"; import { formatSize } from "@/utils/format"; import { createClient } from "@midday/supabase/client"; @@ -11,7 +10,6 @@ import { Button } from "@midday/ui/button"; import { cn } from "@midday/ui/utils"; import { AnimatePresence, motion } from "framer-motion"; import { File, X } from "lucide-react"; -import { useRouter } from "next/navigation"; import { useEffect, useState } from "react"; import { useDropzone } from "react-dropzone"; @@ -70,7 +68,6 @@ type Attachment = { export function Attachments({ id, data }) { const supabase = createClient(); - const router = useRouter(); const [files, setFiles] = useState([]); const { uploadFile } = useUpload(); @@ -143,7 +140,7 @@ export function Attachments({ id, data }) {