diff --git a/apps/web/public/locales/en.json b/apps/web/public/locales/en.json index 9fb1aa0..b8c298d 100644 --- a/apps/web/public/locales/en.json +++ b/apps/web/public/locales/en.json @@ -17,6 +17,7 @@ "search": "Search document...", "empty": "No documents found", "hint": "Drag and drop a document to upload", + "view": "View document", "delete": "Delete document", "download": "Download document", "columns": { diff --git a/apps/web/public/locales/id.json b/apps/web/public/locales/id.json index 51c4b81..1368c6b 100644 --- a/apps/web/public/locales/id.json +++ b/apps/web/public/locales/id.json @@ -17,6 +17,7 @@ "search": "Cari dokumen...", "empty": "Tidak ada dokumen", "hint": "Seret dan lepas dokumen di sini untuk mengunggah", + "view": "Lihat dokumen", "delete": "Hapus dokumen", "download": "Unduh dokumen", "columns": { diff --git a/apps/web/src/app/(app)/@admin/documents/table.tsx b/apps/web/src/app/(app)/@admin/documents/table.tsx index 49b266f..b2a0c48 100644 --- a/apps/web/src/app/(app)/@admin/documents/table.tsx +++ b/apps/web/src/app/(app)/@admin/documents/table.tsx @@ -2,6 +2,7 @@ import type { Document } from "@/server/api/routers/documents/documents.schema"; import React, { useMemo } from "react"; +import Link from "next/link"; import { useSearchParams } from "next/navigation"; import { api } from "@/trpc/react"; import { @@ -25,6 +26,7 @@ import { } from "@nextui-org/react"; import moment from "moment"; import { useTranslations } from "next-intl"; +import { IoOpenOutline } from "react-icons/io5"; import { MdOutlineDownloadForOffline } from "react-icons/md"; import { RiDeleteBin2Line } from "react-icons/ri"; @@ -110,6 +112,18 @@ export function DocumentsTable() { case "actions": return (