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:
parent
4c60907b70
commit
cca23a4019
3 changed files with 11 additions and 2 deletions
|
|
@ -14,7 +14,6 @@ import { useWalletStore } from '../store/wallet';
|
||||||
*/
|
*/
|
||||||
function parseSynToSompi(amountStr: string): bigint | null {
|
function parseSynToSompi(amountStr: string): bigint | null {
|
||||||
const DECIMALS = 8;
|
const DECIMALS = 8;
|
||||||
const MULTIPLIER = BigInt(10 ** DECIMALS);
|
|
||||||
|
|
||||||
// Clean the input
|
// Clean the input
|
||||||
const cleaned = amountStr.trim();
|
const cleaned = amountStr.trim();
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import {
|
||||||
Shield,
|
Shield,
|
||||||
Key,
|
Key,
|
||||||
AlertTriangle,
|
AlertTriangle,
|
||||||
Check,
|
|
||||||
RefreshCw,
|
RefreshCw,
|
||||||
Download,
|
Download,
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
|
|
|
||||||
11
apps/desktop-wallet/src/vite-env.d.ts
vendored
Normal file
11
apps/desktop-wallet/src/vite-env.d.ts
vendored
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue