mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-23 15:14:19 +01:00
remove reset router
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 />
|
||||
</>
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user