From cca23a4019f5733faf424479668d0c4ab0f2831c Mon Sep 17 00:00:00 2001 From: Gulshan Yadav Date: Mon, 2 Feb 2026 02:26:08 +0530 Subject: [PATCH] fix: resolve TypeScript errors in desktop wallet - Remove unused MULTIPLIER variable in Send.tsx - Remove unused Check import in Settings.tsx - Add vite-env.d.ts for ImportMeta.env types --- apps/desktop-wallet/src/pages/Send.tsx | 1 - apps/desktop-wallet/src/pages/Settings.tsx | 1 - apps/desktop-wallet/src/vite-env.d.ts | 11 +++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 apps/desktop-wallet/src/vite-env.d.ts diff --git a/apps/desktop-wallet/src/pages/Send.tsx b/apps/desktop-wallet/src/pages/Send.tsx index 4d7dabd..ed9dd65 100644 --- a/apps/desktop-wallet/src/pages/Send.tsx +++ b/apps/desktop-wallet/src/pages/Send.tsx @@ -14,7 +14,6 @@ import { useWalletStore } from '../store/wallet'; */ function parseSynToSompi(amountStr: string): bigint | null { const DECIMALS = 8; - const MULTIPLIER = BigInt(10 ** DECIMALS); // Clean the input const cleaned = amountStr.trim(); diff --git a/apps/desktop-wallet/src/pages/Settings.tsx b/apps/desktop-wallet/src/pages/Settings.tsx index f3bc17b..75744f2 100644 --- a/apps/desktop-wallet/src/pages/Settings.tsx +++ b/apps/desktop-wallet/src/pages/Settings.tsx @@ -5,7 +5,6 @@ import { Shield, Key, AlertTriangle, - Check, RefreshCw, Download, } from 'lucide-react'; diff --git a/apps/desktop-wallet/src/vite-env.d.ts b/apps/desktop-wallet/src/vite-env.d.ts new file mode 100644 index 0000000..9eb71b1 --- /dev/null +++ b/apps/desktop-wallet/src/vite-env.d.ts @@ -0,0 +1,11 @@ +/// + +interface ImportMetaEnv { + readonly PROD: boolean; + readonly DEV: boolean; + readonly MODE: string; +} + +interface ImportMeta { + readonly env: ImportMetaEnv; +}