From 13eaf55515889ee29f3ba4509aa8ca31ed64b5be Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Sat, 16 Dec 2023 11:52:52 +0100 Subject: [PATCH] Vault --- apps/dashboard/src/components/attachments.tsx | 21 +-- .../dashboard/src/components/file-preview.tsx | 136 ++++++++++++++++++ .../tables/vault/data-table-row.tsx | 19 +-- .../supabase/src/queries/cached-queries.ts | 1 - packages/supabase/src/queries/index.ts | 6 +- packages/ui/src/components/icons.tsx | 4 + 6 files changed, 165 insertions(+), 22 deletions(-) create mode 100644 apps/dashboard/src/components/file-preview.tsx diff --git a/apps/dashboard/src/components/attachments.tsx b/apps/dashboard/src/components/attachments.tsx index dbbfeab794..463d7509f1 100644 --- a/apps/dashboard/src/components/attachments.tsx +++ b/apps/dashboard/src/components/attachments.tsx @@ -16,18 +16,21 @@ import { cn } from "@midday/ui/utils"; import { X } from "lucide-react"; import { useEffect, useState } from "react"; import { useDropzone } from "react-dropzone"; +import { FilePreview } from "./file-preview"; const Item = ({ file, onDelete, id }) => { return (
- +
-