From 3a8718a4b02c9f2367d3335fd4facb4b818c27a2 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Mon, 26 Jan 2026 13:36:25 -0800 Subject: [PATCH] remove archive confirmtion on account devices dialog --- src/components/ViewDevicesDialog.tsx | 42 +--------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/src/components/ViewDevicesDialog.tsx b/src/components/ViewDevicesDialog.tsx index a54a71fd..9c29b219 100644 --- a/src/components/ViewDevicesDialog.tsx +++ b/src/components/ViewDevicesDialog.tsx @@ -28,7 +28,6 @@ import { TableRow } from "@app/components/ui/table"; import { Tabs, TabsList, TabsTrigger, TabsContent } from "@app/components/ui/tabs"; -import ConfirmDeleteDialog from "@app/components/ConfirmDeleteDialog"; import { Loader2, RefreshCw } from "lucide-react"; import moment from "moment"; import { useUserContext } from "@app/hooks/useUserContext"; @@ -59,8 +58,6 @@ export default function ViewDevicesDialog({ const [devices, setDevices] = useState([]); const [loading, setLoading] = useState(false); - const [isArchiveModalOpen, setIsArchiveModalOpen] = useState(false); - const [selectedDevice, setSelectedDevice] = useState(null); const [activeTab, setActiveTab] = useState<"available" | "archived">("available"); const fetchDevices = async () => { @@ -108,8 +105,6 @@ export default function ViewDevicesDialog({ d.olmId === olmId ? { ...d, archived: true } : d ) ); - setIsArchiveModalOpen(false); - setSelectedDevice(null); } catch (error: any) { console.error("Error archiving device:", error); toast({ @@ -153,8 +148,6 @@ export default function ViewDevicesDialog({ function reset() { setDevices([]); - setSelectedDevice(null); - setIsArchiveModalOpen(false); } return ( @@ -263,12 +256,7 @@ export default function ViewDevicesDialog({