+
- {prettyPrintAmount(onChainBalance()?.unconfirmed)} SATS
+ {prettyPrintAmount(state.balance?.unconfirmed)} SATS
diff --git a/src/components/OnboardWarning.tsx b/src/components/OnboardWarning.tsx
new file mode 100644
index 0000000..9a70c8d
--- /dev/null
+++ b/src/components/OnboardWarning.tsx
@@ -0,0 +1,48 @@
+import { Show, createSignal, onMount } from "solid-js";
+import { Button, ButtonLink, SmallHeader, VStack } from "./layout";
+import { useMegaStore } from "~/state/megaStore";
+
+export function OnboardWarning() {
+ const [state, actions] = useMegaStore();
+ const [dismissedBackup, setDismissedBackup] = createSignal(false);
+
+ onMount(() => {
+ actions.sync()
+ })
+
+ function hasMoney() {
+ return state.balance?.confirmed || state.balance?.lightning || state.balance?.unconfirmed
+ }
+
+ return (
+ <>
+ {/* TODO: show this once we have a restore flow */}
+
+
+
Welcome!
+
+
+ Do you want to restore an existing Mutiny Wallet?
+
+
+
+
+
+
+
+
+
+
+
Secure your funds
+
+ You have money stored in this browser. Let's make sure you have a backup.
+
+
+ Backup
+
+
+
+
+ >
+ )
+}
\ No newline at end of file
diff --git a/src/components/SeedWords.tsx b/src/components/SeedWords.tsx
index 8c70b43..1df63e0 100644
--- a/src/components/SeedWords.tsx
+++ b/src/components/SeedWords.tsx
@@ -1,27 +1,36 @@
-import { Match, Switch, createSignal } from "solid-js"
+import { For, Match, Switch, createMemo, createSignal } from "solid-js"
-export function SeedWords(props: { words: string }) {
+export function SeedWords(props: { words: string, setHasSeen?: (hasSeen: boolean) => void }) {
const [shouldShow, setShouldShow] = createSignal(false)
function toggleShow() {
setShouldShow(!shouldShow())
+ if (shouldShow()) {
+ props.setHasSeen?.(true)
+ }
}
- return (
+ const splitWords = createMemo(() => props.words.split(" "))
+
+ return (