diff --git a/src/assets/icons/community.svg b/src/assets/icons/community.svg new file mode 100644 index 0000000..7740d13 --- /dev/null +++ b/src/assets/icons/community.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/Amount.tsx b/src/components/Amount.tsx index 4c4e8cb..4e28499 100644 --- a/src/components/Amount.tsx +++ b/src/components/Amount.tsx @@ -2,6 +2,7 @@ import { Show } from "solid-js"; import bolt from "~/assets/icons/bolt.svg"; import chain from "~/assets/icons/chain.svg"; +import community from "~/assets/icons/community.svg"; import { useI18n } from "~/i18n/context"; import { useMegaStore } from "~/state/megaStore"; import { satsToFormattedFiat } from "~/utils"; @@ -15,7 +16,7 @@ function prettyPrintAmount(n?: number | bigint): string { export function AmountSats(props: { amountSats: bigint | number | undefined; - icon?: "lightning" | "chain" | "plus" | "minus"; + icon?: "lightning" | "community" | "chain" | "plus" | "minus"; denominationSize?: "sm" | "lg" | "xl"; }) { const i18n = useI18n(); @@ -24,6 +25,9 @@ export function AmountSats(props: { lightning + + community + chain diff --git a/src/components/BalanceBox.tsx b/src/components/BalanceBox.tsx index 6445442..1e3312a 100644 --- a/src/components/BalanceBox.tsx +++ b/src/components/BalanceBox.tsx @@ -42,6 +42,7 @@ export function BalanceBox(props: { loading?: boolean }) { const emptyBalance = () => (state.balance?.confirmed || 0n) === 0n && (state.balance?.lightning || 0n) === 0n && + (state.balance?.federation || 0n) === 0n && (state.balance?.force_close || 0n) === 0n && (state.balance?.unconfirmed || 0n) === 0n; @@ -91,6 +92,40 @@ export function BalanceBox(props: { loading?: boolean }) { +
+ }> + + +
+ + {i18n.t("common.error_safe_mode")} + +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
}>