Skip to content

Commit 11cfb74

Browse files
committed
feat(connector): change name for lndhub #576
- re-sort the connectors
1 parent 79c6b97 commit 11cfb74

File tree

4 files changed

+22
-25
lines changed

4 files changed

+22
-25
lines changed

src/app/router/connectorRoutes.tsx

+13-13
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,14 @@ function getConnectorRoutes() {
5656
logo: lnd,
5757
},
5858
{
59-
path: "lnd-hub-bluewallet",
60-
element: <ConnectLndHub />,
61-
title: i18n.t(
62-
"choose_connector.lndhub_bluewallet.title",
63-
translationI18nNamespace
64-
),
59+
path: "lnbits",
60+
element: <ConnectLnbits />,
61+
title: i18n.t("choose_connector.lnbits.title", translationI18nNamespace),
6562
description: i18n.t(
66-
"choose_connector.lndhub_bluewallet.description",
63+
"choose_connector.lnbits.description",
6764
translationI18nNamespace
6865
),
69-
logo: lndhubBlueWallet,
66+
logo: lnbits,
7067
},
7168
{
7269
path: "lnd-hub-go",
@@ -82,14 +79,17 @@ function getConnectorRoutes() {
8279
logo: lndhubGo,
8380
},
8481
{
85-
path: "lnbits",
86-
element: <ConnectLnbits />,
87-
title: i18n.t("choose_connector.lnbits.title", translationI18nNamespace),
82+
path: "lnd-hub-bluewallet",
83+
element: <ConnectLndHub />,
84+
title: i18n.t(
85+
"choose_connector.lndhub_bluewallet.title",
86+
translationI18nNamespace
87+
),
8888
description: i18n.t(
89-
"choose_connector.lnbits.description",
89+
"choose_connector.lndhub_bluewallet.description",
9090
translationI18nNamespace
9191
),
92-
logo: lnbits,
92+
logo: lndhubBlueWallet,
9393
},
9494
{
9595
path: "eclair",

src/app/screens/connectors/ConnectLndHub/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function ConnectLndHub({
5454
const password = match[2];
5555
const url = match[3].replace(/\/$/, "");
5656
const account = {
57-
name: "LNDHub",
57+
name: lndHubType === "lndhub_bluewallet" ? "Bluewallet" : "LNDHub",
5858
config: {
5959
login,
6060
password,

src/i18n/locales/en/translation.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,18 @@
111111
}
112112
},
113113
"lndhub_bluewallet": {
114-
"title": "LNDHub (Bluewallet)",
114+
"title": "Bluewallet",
115115
"description": "Connect to your Bluewallet mobile wallet",
116116
"page": {
117-
"title": "Connect to LNDHub (BlueWallet)",
117+
"title": "Connect to BlueWallet",
118118
"description": "In BlueWallet, choose the wallet you want to connect, open it, click on \"...\", click on Export/Backup to display the QR code and scan it with your webcam."
119119
},
120120
"uri": {
121-
"label": "LNDHub Export URI"
121+
"label": "BlueWallet Export URI"
122122
},
123123
"errors": {
124-
"invalid_uri": "Invalid LNDHub URI",
125-
"connection_failed": "Connection failed. Is your LNDHub URI correct?"
124+
"invalid_uri": "Invalid BlueWallet URI",
125+
"connection_failed": "Connection failed. Is your BlueWallet URI correct?"
126126
}
127127
},
128128
"lndhub_go": {

tests/e2e/001-createWallets.spec.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,11 @@ test.describe("Create or connect wallets", () => {
106106
test("successfully connects to BlueWallet", async () => {
107107
const { browser, page, $document } = await commonCreateWalletUserCreate();
108108

109-
// click at "LNDHub (BlueWallet)"
110-
const createNewWalletButton = await getByText(
111-
$document,
112-
"LNDHub (Bluewallet)"
113-
);
109+
// click at "BlueWallet"
110+
const createNewWalletButton = await getByText($document, "Bluewallet");
114111
createNewWalletButton.click();
115112

116-
await findByText($document, "Connect to LNDHub (BlueWallet)");
113+
await findByText($document, "Connect to BlueWallet");
117114

118115
const lndHubUrl =
119116
"lndhub://c269ebb962f1a94f9c29:f6f16f35e935edc05ee7@https://lndhub.io";

0 commit comments

Comments
 (0)