Skip to content

Commit

Permalink
fix: update translations, icons + use existing nwc connector for alby…
Browse files Browse the repository at this point in the history
… hub
  • Loading branch information
pavanjoshi914 committed Nov 8, 2024
1 parent ba47c1e commit 4511c3a
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 275 deletions.
2 changes: 1 addition & 1 deletion src/app/router/connectorRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import ConnectAlbyHub from "~/app/screens/connectors/ConnectAlbyHub";
import ConnectNWC from "~/app/screens/connectors/ConnectNWC";
import ConnectVoltage from "~/app/screens/connectors/ConnectVoltage";
import ConnectCommando from "../screens/connectors/ConnectCommando";
import albyhub from "/static/assets/icons/albyhub.svg";
import albyhub from "/static/assets/icons/albyhub.png";
import btcpay from "/static/assets/icons/btcpay.svg";
import citadel from "/static/assets/icons/citadel.png";
import core_ln from "/static/assets/icons/core_ln.svg";
Expand Down
4 changes: 2 additions & 2 deletions src/app/screens/connectors/ConnectAlbyHub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useNavigate } from "react-router-dom";
import toast from "~/app/components/Toast";
import msg from "~/common/lib/msg";

import logo from "/static/assets/icons/albyhub.svg";
import logo from "/static/assets/icons/albyhub.png";

export default function ConnectAlbyHub() {
const navigate = useNavigate();
Expand All @@ -27,7 +27,7 @@ export default function ConnectAlbyHub() {
}

function getConnectorType() {
return "albyhub";
return "nwc";
}

async function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
Expand Down
251 changes: 0 additions & 251 deletions src/extension/background-script/connectors/albyhub.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/extension/background-script/connectors/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Alby from "./alby";
import AlbyHub from "./albyhub";
import Citadel from "./citadel";
import Commando from "./commando";
import Eclair from "./eclair";
Expand Down Expand Up @@ -41,7 +40,6 @@ const connectors = {
alby: Alby,
nwc: NWC,
lawallet: LaWallet,
albyhub: AlbyHub,
};

export default connectors;
4 changes: 2 additions & 2 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@
"albyhub": {
"title": "Alby Hub",
"page": {
"instructions": "Paste a NWC connection string from Alby Hub",
"instructions": "Paste a NWC connection secret from Alby Hub",
"url": {
"label": "NWC connection string from Alby Hub",
"label": "NWC connection secret from Alby Hub",
"placeholder": "nostr+walletconnect://69effe..."
},
"errors": {
Expand Down
Binary file added static/assets/icons/albyhub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions static/assets/icons/albyhub.svg

This file was deleted.

0 comments on commit 4511c3a

Please sign in to comment.