rebase fixes

This commit is contained in:
Paul Miller
2023-05-09 09:43:01 -05:00
parent 55c4b4214a
commit e46cd74fcd
5 changed files with 16 additions and 16 deletions

View File

@@ -6,13 +6,13 @@ import { showToast } from "./Toaster";
import { downloadTextFile } from "~/utils/download"; import { downloadTextFile } from "~/utils/download";
import { createFileUploader } from "@solid-primitives/upload" import { createFileUploader } from "@solid-primitives/upload"
import { ConfirmDialog } from "./Dialog"; import { ConfirmDialog } from "./Dialog";
import { NodeManager } from "@mutinywallet/mutiny-wasm"; import { MutinyWallet } from "@mutinywallet/mutiny-wasm";
export function ImportExport() { export function ImportExport() {
const [state, _] = useMegaStore() const [state, _] = useMegaStore()
async function handleSave() { async function handleSave() {
const json = await state.node_manager?.export_json() const json = await state.mutiny_wallet?.export_json()
downloadTextFile(json || "", "mutiny-state.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 // This should throw if there's a parse error, so we won't end up clearing
JSON.parse(text); JSON.parse(text);
NodeManager.import_json(text); MutinyWallet.import_json(text);
window.location.href = "/" window.location.href = "/"

View File

@@ -303,7 +303,7 @@ function LnUrlAuth() {
e.preventDefault(); e.preventDefault();
const lnurl = value().trim(); const lnurl = value().trim();
await state.node_manager?.lnurl_auth(0, lnurl) await state.mutiny_wallet?.lnurl_auth(0, lnurl)
setValue(""); setValue("");
}; };

View File

@@ -35,16 +35,16 @@ export default function NavBar(props: { activeTab: ActiveTab }) {
<img src={userClock} alt="activity" /> <img src={userClock} alt="activity" />
</A> </A>
</li> </li>
<li class={props.activeTab === "settings" ? activeStyle : inactiveStyle}>
<A href="/settings">
<img src={settings} alt="settings" />
</A>
</li>
<li class={props.activeTab === "redshift" ? activeStyle : inactiveStyle}> <li class={props.activeTab === "redshift" ? activeStyle : inactiveStyle}>
<A href="/redshift"> <A href="/redshift">
<img src={redshift} alt="redshift" width={36} /> <img src={redshift} alt="redshift" width={36} />
</A> </A>
</li> </li>
<li class={props.activeTab === "settings" ? activeStyle : inactiveStyle}>
<A href="/settings">
<img src={settings} alt="settings" />
</A>
</li>
</ul> </ul>
</nav > </nav >
) )

View File

@@ -1,6 +1,6 @@
import { For, Show, createResource } from "solid-js"; import { For, Show, createResource } from "solid-js";
import NavBar from "~/components/NavBar"; 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 { BackLink } from "~/components/layout/BackLink";
import { CombinedActivity } from "~/components/Activity"; import { CombinedActivity } from "~/components/Activity";
import { A } from "solid-start"; 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() { export default function Activity() {
return ( return (
<NodeManagerGuard> <MutinyWalletGuard>
<SafeArea> <SafeArea>
<DefaultMain> <DefaultMain>
<BackLink /> <BackLink />
@@ -73,6 +73,6 @@ export default function Activity() {
</DefaultMain> </DefaultMain>
<NavBar activeTab="activity" /> <NavBar activeTab="activity" />
</SafeArea> </SafeArea>
</NodeManagerGuard> </MutinyWalletGuard>
) )
} }

View File

@@ -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 NavBar from "~/components/NavBar";
import { useNavigate } from 'solid-start'; import { useNavigate } from 'solid-start';
import { SeedWords } from '~/components/SeedWords'; import { SeedWords } from '~/components/SeedWords';
@@ -18,7 +18,7 @@ export default function App() {
} }
return ( return (
<NodeManagerGuard> <MutinyWalletGuard>
<SafeArea> <SafeArea>
<DefaultMain> <DefaultMain>
<BackLink /> <BackLink />
@@ -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. If you clear your browser history, or lose your device, these 12 words are the only way you can restore your wallet.
</NiceP> </NiceP>
<NiceP>Mutiny is self-custodial. It's all up to you...</NiceP> <NiceP>Mutiny is self-custodial. It's all up to you...</NiceP>
<SeedWords words={store.node_manager?.show_seed() || ""} setHasSeen={setHasSeenBackup} /> <SeedWords words={store.mutiny_wallet?.show_seed() || ""} setHasSeen={setHasSeenBackup} />
<Show when={hasSeenBackup()}> <Show when={hasSeenBackup()}>
<NiceP>You are responsible for your funds!</NiceP> <NiceP>You are responsible for your funds!</NiceP>
</Show> </Show>
@@ -39,6 +39,6 @@ export default function App() {
</DefaultMain> </DefaultMain>
<NavBar activeTab="none" /> <NavBar activeTab="none" />
</SafeArea> </SafeArea>
</NodeManagerGuard> </MutinyWalletGuard>
); );
} }