From 35cef5ce90db5f96b5cde536d44ed624e479540d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 10 Jan 2026 20:48:30 +0000 Subject: [PATCH 1/2] Initial plan From 991077cc82bab7744db07eabb12d0de9b48234bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 10 Jan 2026 20:53:07 +0000 Subject: [PATCH 2/2] Remove handlePaste function and related props based on review feedback Co-authored-by: jonax1337 <25123834+jonax1337@users.noreply.github.com> --- components/CustomTitleBar.tsx | 4 +--- components/main-app/index.tsx | 10 ---------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/components/CustomTitleBar.tsx b/components/CustomTitleBar.tsx index daa4a6f..3d3f5b4 100644 --- a/components/CustomTitleBar.tsx +++ b/components/CustomTitleBar.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react"; import { getCurrentWindow } from "@tauri-apps/api/window"; -import { Minus, Square, X, Copy, Save, LogOut, Undo2, Redo2, Clipboard, ClipboardPaste, FolderOpen, Database as DatabaseIcon, Eye, EyeOff, Info, ExternalLink, FileText } from "lucide-react"; +import { Minus, Square, X, Copy, Save, LogOut, Undo2, Redo2, Clipboard, FolderOpen, Database as DatabaseIcon, Eye, EyeOff, Info, ExternalLink, FileText } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Settings } from "@/components/animate-ui/icons/settings"; import { Search } from "@/components/animate-ui/icons/search"; @@ -31,7 +31,6 @@ interface CustomTitleBarProps { onUndo?: () => void; onRedo?: () => void; onCopy?: () => void; - onPaste?: () => void; onNewDatabase?: () => void; onTogglePasswords?: () => void; onAbout?: () => void; @@ -51,7 +50,6 @@ export function CustomTitleBar({ onUndo, onRedo, onCopy, - onPaste, onNewDatabase, onTogglePasswords, onAbout, diff --git a/components/main-app/index.tsx b/components/main-app/index.tsx index 004dc39..7994272 100644 --- a/components/main-app/index.tsx +++ b/components/main-app/index.tsx @@ -282,15 +282,6 @@ export function MainApp({ onClose }: MainAppProps) { } }, [selectedEntryForCopy, toast]); - const handlePaste = useCallback(() => { - toast({ - title: "Paste", - description: "Paste functionality is context-dependent", - variant: "default", - }); - }, [toast]); - - const handleNewDatabase = useCallback(() => { if (isDirty) { toast({ @@ -808,7 +799,6 @@ export function MainApp({ onClose }: MainAppProps) { onUndo={handleUndo} onRedo={handleRedo} onCopy={handleCopyPassword} - onPaste={handlePaste} onNewDatabase={handleNewDatabase} onTogglePasswords={handleTogglePasswords} onAbout={handleAbout}