diff --git a/src/components/SettingsViewer.tsx b/src/components/SettingsViewer.tsx index 861a2b3..e0da63a 100644 --- a/src/components/SettingsViewer.tsx +++ b/src/components/SettingsViewer.tsx @@ -9,7 +9,7 @@ import { import { Switch } from "./ui/switch"; import { useSettings } from "@/hooks/useSettings"; import { useTheme } from "@/lib/themes"; -import { Palette, FileEdit, Heart, Zap } from "lucide-react"; +import { Palette, FileEdit, Heart, Trophy } from "lucide-react"; import { Button } from "./ui/button"; import { Progress } from "./ui/progress"; import { useLiveQuery } from "dexie-react-hooks"; @@ -51,17 +51,20 @@ export function SettingsViewer() { // Calculate monthly donation progress const goalProgress = (monthlyDonations / MONTHLY_GOAL_SATS) * 100; - // Format sats for display - function formatSats(sats: number): string { - if (sats >= 1_000_000) { - return `${(sats / 1_000_000).toFixed(1)}M`; - } else if (sats >= 1_000) { - return `${Math.floor(sats / 1_000)}k`; + // Format amount for display + function formatAmount(amount: number): string { + if (amount >= 1_000_000) { + return `${(amount / 1_000_000).toFixed(1)}M`; + } else if (amount >= 1_000) { + return `${Math.floor(amount / 1_000)}k`; } - return sats.toLocaleString(); + return amount.toLocaleString(); } - function openZapWindow() { + // Contribution tiers + const contributionTiers = [210, 2100, 21000, 42000, 210000]; + + function openSupportWindow() { addWindow( "zap", { @@ -186,7 +189,7 @@ export function SettingsViewer() {
- Help support development with Lightning zaps + Help support development
- Support Grimoire development with Bitcoin over Lightning -
- -