diff --git a/apps/desktop/src/router.tsx b/apps/desktop/src/router.tsx index 47bc921a9..ad4717119 100644 --- a/apps/desktop/src/router.tsx +++ b/apps/desktop/src/router.tsx @@ -35,13 +35,6 @@ export default function Router() { return { Component: HomeScreen }; }, }, - { - path: "nwc", - async lazy() { - const { NWCScreen } = await import("./routes/nwc"); - return { Component: NWCScreen }; - }, - }, { path: "settings", element: , @@ -100,6 +93,13 @@ export default function Router() { return { Component: AdvancedSettingScreen }; }, }, + { + path: "nwc", + async lazy() { + const { NWCScreen } = await import("./routes/settings/nwc"); + return { Component: NWCScreen }; + }, + }, { path: "about", async lazy() { diff --git a/apps/desktop/src/routes/nwc/index.tsx b/apps/desktop/src/routes/nwc/index.tsx deleted file mode 100644 index 96ac0efd4..000000000 --- a/apps/desktop/src/routes/nwc/index.tsx +++ /dev/null @@ -1,125 +0,0 @@ -import { CheckCircleIcon } from "@lume/icons"; -import { useStorage } from "@lume/storage"; -import { useEffect, useState } from "react"; -import { NWCForm } from "./components/form"; - -export function NWCScreen() { - const storage = useStorage(); - const [walletConnectURL, setWalletConnectURL] = useState(null); - - const remove = async () => { - await storage.removePrivkey(`${ark.account.pubkey}-nwc`); - setWalletConnectURL(null); - }; - - useEffect(() => { - async function getNWC() { - const nwc = await storage.loadPrivkey(`${ark.account.pubkey}-nwc`); - if (nwc) setWalletConnectURL(nwc); - } - getNWC(); - }, []); - - return ( -
-
-
-

- Nostr Wallet Connect -

-

- Sending zap easily via Bitcoin Lightning. -

-
-
- {!walletConnectURL ? ( - - ) : ( -
-
- -
You're using nostr wallet connect
-
-
-