Skip to content

Commit

Permalink
rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed May 9, 2023
1 parent 55c4b42 commit e46cd74
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/components/ImportExport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand All @@ -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 = "/"

Expand Down
2 changes: 1 addition & 1 deletion src/components/KitchenSink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
};
Expand Down
10 changes: 5 additions & 5 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ export default function NavBar(props: { activeTab: ActiveTab }) {
<img src={userClock} alt="activity" />
</A>
</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}>
<A href="/redshift">
<img src={redshift} alt="redshift" width={36} />
</A>
</li>
<li class={props.activeTab === "settings" ? activeStyle : inactiveStyle}>
<A href="/settings">
<img src={settings} alt="settings" />
</A>
</li>
</ul>
</nav >
)
Expand Down
6 changes: 3 additions & 3 deletions src/routes/Activity.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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 (
<NodeManagerGuard>
<MutinyWalletGuard>
<SafeArea>
<DefaultMain>
<BackLink />
Expand Down Expand Up @@ -73,6 +73,6 @@ export default function Activity() {
</DefaultMain>
<NavBar activeTab="activity" />
</SafeArea>
</NodeManagerGuard>
</MutinyWalletGuard>
)
}
8 changes: 4 additions & 4 deletions src/routes/Backup.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -18,7 +18,7 @@ export default function App() {
}

return (
<NodeManagerGuard>
<MutinyWalletGuard>
<SafeArea>
<DefaultMain>
<BackLink />
Expand All @@ -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.
</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()}>
<NiceP>You are responsible for your funds!</NiceP>
</Show>
Expand All @@ -39,6 +39,6 @@ export default function App() {
</DefaultMain>
<NavBar activeTab="none" />
</SafeArea>
</NodeManagerGuard>
</MutinyWalletGuard>
);
}

0 comments on commit e46cd74

Please sign in to comment.