From 54287af7d0aae6b09673446b535403a9fc2ac045 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Thu, 23 Apr 2026 06:32:35 +0000 Subject: [PATCH] feat(notes): replace native confirm with styled delete modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Native browser confirm() looked out of place on the dashboard. Replaced with a glassmorphism modal matching the rest of the UI — trash icon, note title preview, Cancel/Delete buttons with proper styling. --- components/NotesTab.tsx | 79 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/components/NotesTab.tsx b/components/NotesTab.tsx index 4f8b8b5..935c3c7 100644 --- a/components/NotesTab.tsx +++ b/components/NotesTab.tsx @@ -28,6 +28,7 @@ export default function NotesTab() { const [activeNote, setActiveNote] = useState(null) const [showCreate, setShowCreate] = useState(false) const [newItemText, setNewItemText] = useState('') + const [confirmDelete, setConfirmDelete] = useState(null) const load = useCallback(async () => { try { @@ -232,7 +233,7 @@ export default function NotesTab() { fontFamily: 'inherit', flex: 1, minWidth: 0, }} /> - + + + + + )} ) }