diff --git a/src/app/compare/page.tsx b/src/app/compare/page.tsx index 13f8533c..d3416839 100644 --- a/src/app/compare/page.tsx +++ b/src/app/compare/page.tsx @@ -151,45 +151,71 @@ function ComparePage() { const printWindow = window.open('', '_blank'); if (!printWindow) return; - const html = ` - - -
-Generated on ${new Date().toLocaleDateString()}
-| Metric | - ${properties.map(p => `${p.name} | `).join('')} -
|---|---|
| ${metric.label} | - ${properties.map(p => `${metric.format(getNestedValue(p, metric.key), p)} | `).join('')} -
+
• {warning}
))} @@ -254,7 +254,7 @@ export const SecureTransactionConfirmation: React.FC+
• {risk}
))} diff --git a/src/components/TransactionConfirmation.tsx b/src/components/TransactionConfirmation.tsx index 383fa14a..2bec84fa 100644 --- a/src/components/TransactionConfirmation.tsx +++ b/src/components/TransactionConfirmation.tsx @@ -1,14 +1,8 @@ 'use client'; import { logger } from '@/utils/logger'; -import React, { useState } from 'react'; -import Link from 'next/link'; -import { useSecurity } from '@/hooks/useSecurity'; -import { AlertTriangle, Shield, CheckCircle, X, Eye, EyeOff, Info } from 'lucide-react'; -import { useWalletStore } from '@/store/walletStore'; -import { useKycStore } from '@/store/kycStore'; -import { formatEthAmount, shouldRequireKyc, weiToEth } from '@/lib/kyc'; import React, { useEffect, useMemo, useRef, useState } from 'react'; +import Link from 'next/link'; import { useSecurity } from '@/hooks/useSecurity'; import { AlertTriangle, @@ -23,6 +17,9 @@ import { ShieldCheck, Lock, } from 'lucide-react'; +import { useWalletStore } from '@/store/walletStore'; +import { useKycStore } from '@/store/kycStore'; +import { formatEthAmount, shouldRequireKyc, weiToEth } from '@/lib/kyc'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; import { InputOTP, InputOTPGroup, InputOTPSlot } from '@/components/ui/input-otp'; @@ -96,7 +93,6 @@ export const TransactionConfirmation: React.FC+
• {warning}
))} @@ -390,7 +386,7 @@ export const TransactionConfirmation: React.FC+
• {block}
))} @@ -537,7 +533,7 @@ export const TransactionConfirmation: React.FC+
• {warning}
))} diff --git a/src/components/dashboard/DataRefreshWrapper.tsx b/src/components/dashboard/DataRefreshWrapper.tsx index 2e8e9d43..11eb0717 100644 --- a/src/components/dashboard/DataRefreshWrapper.tsx +++ b/src/components/dashboard/DataRefreshWrapper.tsx @@ -1,4 +1,4 @@ -import { useState, useCallback, useRef, useEffect } from "react"; +import { useState, useCallback, useId } from "react"; import type { ReactNode } from "react"; import { motion, AnimatePresence } from "framer-motion"; import { RefreshCw, AlertCircle, CheckCircle } from "lucide-react"; @@ -21,17 +21,7 @@ export const DataRefreshWrapper = ({ }: DataRefreshWrapperProps) => { const [refreshState, setRefreshState] = useState