remove reset router

This commit is contained in:
Paul Miller
2024-04-02 14:34:55 -05:00
parent e5674c94e4
commit c446b86622
4 changed files with 0 additions and 35 deletions

View File

@@ -655,10 +655,6 @@
"title": "Not Found",
"wtf_paul": "This is probably Paul's fault."
},
"reset_router": {
"payments_failing": "Failing to make payments? Try resetting the lightning router.",
"reset_router": "Reset Router"
},
"resync": {
"incorrect_balance": "On-chain balance seems incorrect? Try re-syncing the on-chain wallet.",
"resync_wallet": "Resync wallet"

View File

@@ -19,7 +19,6 @@ import {
Hr,
InnerCard,
MiniStringShower,
ResetRouter,
Restart,
ResyncOnchain,
showToast,
@@ -575,8 +574,6 @@ export function KitchenSink() {
<Hr />
<ResyncOnchain />
<Hr />
<ResetRouter />
<Hr />
<Restart />
<Hr />
</>

View File

@@ -1,27 +0,0 @@
import { Button, InnerCard, NiceP, VStack } from "~/components";
import { useI18n } from "~/i18n/context";
import { useMegaStore } from "~/state/megaStore";
export function ResetRouter() {
const i18n = useI18n();
const [state, _] = useMegaStore();
async function reset() {
try {
await state.mutiny_wallet?.reset_router();
} catch (e) {
console.error(e);
}
}
return (
<InnerCard>
<VStack>
<NiceP>{i18n.t("error.reset_router.payments_failing")}</NiceP>
<Button intent="red" onClick={reset}>
{i18n.t("error.reset_router.reset_router")}
</Button>
</VStack>
</InnerCard>
);
}

View File

@@ -29,7 +29,6 @@ export * from "./NavBar";
export * from "./PendingNwc";
export * from "./Reader";
export * from "./Reload";
export * from "./ResetRouter";
export * from "./Restart";
export * from "./ResyncOnchain";
export * from "./SeedWords";