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
This commit is contained in:
Gulshan Yadav 2026-02-02 02:26:08 +05:30
parent 4c60907b70
commit cca23a4019
3 changed files with 11 additions and 2 deletions

View file

@ -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();

View file

@ -5,7 +5,6 @@ import {
Shield,
Key,
AlertTriangle,
Check,
RefreshCw,
Download,
} from 'lucide-react';

11
apps/desktop-wallet/src/vite-env.d.ts vendored Normal file
View file

@ -0,0 +1,11 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly PROD: boolean;
readonly DEV: boolean;
readonly MODE: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}