From f99f4c0ff118547388a7e1ea332aa8755a8c9baf Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sun, 19 May 2024 17:56:57 +0000
Subject: feature(web): Add an archive button to list management dialog

---
 apps/web/components/dashboard/bookmarks/ManageListsModal.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'apps/web/components/dashboard/bookmarks/ManageListsModal.tsx')

diff --git a/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx b/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx
index a906aee8..9451e736 100644
--- a/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx
+++ b/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx
@@ -19,7 +19,7 @@ import {
 import { toast } from "@/components/ui/use-toast";
 import { api } from "@/lib/trpc";
 import { zodResolver } from "@hookform/resolvers/zod";
-import { X } from "lucide-react";
+import { Archive, X } from "lucide-react";
 import { useForm } from "react-hook-form";
 import { z } from "zod";
 
@@ -30,6 +30,7 @@ import {
 } from "@hoarder/shared-react/hooks/lists";
 
 import { BookmarkListSelector } from "../lists/BookmarkListSelector";
+import ArchiveBookmarkButton from "./action-buttons/ArchiveBookmarkButton";
 
 export default function ManageListsModal({
   bookmarkId,
@@ -179,6 +180,13 @@ export default function ManageListsModal({
                   Close
                 </Button>
               </DialogClose>
+              <ArchiveBookmarkButton
+                type="button"
+                bookmarkId={bookmarkId}
+                onDone={() => setOpen(false)}
+              >
+                <Archive className="mr-2 size-4" /> Archive
+              </ArchiveBookmarkButton>
               <ActionButton
                 type="submit"
                 loading={isAddingToListPending}
-- 
cgit v1.2.3-70-g09d2

