diff --git a/src/components/ImportExport.tsx b/src/components/ImportExport.tsx index 5b4d375..e22a48a 100644 --- a/src/components/ImportExport.tsx +++ b/src/components/ImportExport.tsx @@ -6,13 +6,13 @@ import { showToast } from "./Toaster"; import { downloadTextFile } from "~/utils/download"; import { createFileUploader } from "@solid-primitives/upload" import { ConfirmDialog } from "./Dialog"; -import { NodeManager } from "@mutinywallet/mutiny-wasm"; +import { MutinyWallet } from "@mutinywallet/mutiny-wasm"; export function ImportExport() { const [state, _] = useMegaStore() async function handleSave() { - const json = await state.node_manager?.export_json() + const json = await state.mutiny_wallet?.export_json() downloadTextFile(json || "", "mutiny-state.json") } @@ -32,7 +32,7 @@ export function ImportExport() { // This should throw if there's a parse error, so we won't end up clearing JSON.parse(text); - NodeManager.import_json(text); + MutinyWallet.import_json(text); window.location.href = "/" diff --git a/src/components/KitchenSink.tsx b/src/components/KitchenSink.tsx index fa6a5b9..a37c0b7 100644 --- a/src/components/KitchenSink.tsx +++ b/src/components/KitchenSink.tsx @@ -303,7 +303,7 @@ function LnUrlAuth() { e.preventDefault(); const lnurl = value().trim(); - await state.node_manager?.lnurl_auth(0, lnurl) + await state.mutiny_wallet?.lnurl_auth(0, lnurl) setValue(""); }; diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index 4af7725..e1775d4 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -35,16 +35,16 @@ export default function NavBar(props: { activeTab: ActiveTab }) { activity -
  • - - settings - -
  • redshift
  • +
  • + + settings + +
  • ) diff --git a/src/routes/Activity.tsx b/src/routes/Activity.tsx index 3123b41..6234989 100644 --- a/src/routes/Activity.tsx +++ b/src/routes/Activity.tsx @@ -1,6 +1,6 @@ import { For, Show, createResource } from "solid-js"; import NavBar from "~/components/NavBar"; -import { Button, Card, DefaultMain, LargeHeader, NiceP, NodeManagerGuard, SafeArea, VStack } from "~/components/layout"; +import { Button, Card, DefaultMain, LargeHeader, NiceP, MutinyWalletGuard, SafeArea, VStack } from "~/components/layout"; import { BackLink } from "~/components/layout/BackLink"; import { CombinedActivity } from "~/components/Activity"; import { A } from "solid-start"; @@ -43,7 +43,7 @@ const TAB = "flex-1 inline-block px-8 py-4 text-lg font-semibold rounded-lg ui-s export default function Activity() { return ( - + @@ -73,6 +73,6 @@ export default function Activity() { - + ) } \ No newline at end of file diff --git a/src/routes/Backup.tsx b/src/routes/Backup.tsx index 7d6b60b..30b9015 100644 --- a/src/routes/Backup.tsx +++ b/src/routes/Backup.tsx @@ -1,4 +1,4 @@ -import { Button, DefaultMain, LargeHeader, NiceP, NodeManagerGuard, SafeArea, VStack } from "~/components/layout"; +import { Button, DefaultMain, LargeHeader, NiceP, MutinyWalletGuard, SafeArea, VStack } from "~/components/layout"; import NavBar from "~/components/NavBar"; import { useNavigate } from 'solid-start'; import { SeedWords } from '~/components/SeedWords'; @@ -18,7 +18,7 @@ export default function App() { } return ( - + @@ -30,7 +30,7 @@ export default function App() { If you clear your browser history, or lose your device, these 12 words are the only way you can restore your wallet. Mutiny is self-custodial. It's all up to you... - + You are responsible for your funds! @@ -39,6 +39,6 @@ export default function App() { - + ); }