Skip to content

Commit af8a597

Browse files
Merge pull request #3256 from getAlby/remove-invite-code-copy
feat: remove invite-code-copy
2 parents 1b5362c + ea47f13 commit af8a597

File tree

10 files changed

+17
-119
lines changed

10 files changed

+17
-119
lines changed

src/app/components/ConnectorPath/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
type Props = {
22
title: string;
33
description: string;
4-
content: React.ReactNode;
54
actions: React.ReactNode;
65
icon: React.ReactNode;
76
};
87

9-
function ConnectorPath({ title, icon, description, content, actions }: Props) {
8+
function ConnectorPath({ title, icon, description, actions }: Props) {
109
return (
1110
<div className="text-gray-600 dark:text-neutral-400 flex flex-col p-8 border border-gray-200 dark:border-neutral-700 rounded-2xl bg-white dark:bg-surface-02dp">
1211
<div className="flex flex-col sm:flex-row items-center mb-4 space-x-3">
@@ -16,7 +15,6 @@ function ConnectorPath({ title, icon, description, content, actions }: Props) {
1615
</h1>
1716
</div>
1817
<p className="mb-8">{description}</p>
19-
<div className="flex flex-col space-y-4 text-sm mb-8">{content}</div>
2018
<div className="flex gap-4 flex-col sm:flex-row mt-auto">{actions}</div>
2119
</div>
2220
);
Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
PopiconsCircleCheckLine,
3-
PopiconsCircleExclamationLine,
4-
PopiconsCircleXLine,
5-
} from "@popicons/react";
6-
import { Trans, useTranslation } from "react-i18next";
1+
import { useTranslation } from "react-i18next";
72
import { Link } from "react-router-dom";
83
import Button from "~/app/components/Button";
94
import ConnectorPath from "~/app/components/ConnectorPath";
@@ -30,22 +25,6 @@ export default function ChooseConnectorPath() {
3025
/>
3126
}
3227
description={t("alby.description")}
33-
content={
34-
<>
35-
<FeatureItem type="success">
36-
<Trans
37-
i18nKey={"alby.point1"}
38-
t={t}
39-
components={[
40-
// eslint-disable-next-line react/jsx-key
41-
<b></b>,
42-
]}
43-
/>
44-
</FeatureItem>
45-
<FeatureItem type="success">{t("alby.point2")}</FeatureItem>
46-
<FeatureItem type="warning">{t("alby.point3")}</FeatureItem>
47-
</>
48-
}
4928
actions={<ConnectAlby />}
5029
/>
5130
<ConnectorPath
@@ -71,15 +50,8 @@ export default function ChooseConnectorPath() {
7150
</div>
7251
}
7352
description={t("other.description")}
74-
content={
75-
<>
76-
<FeatureItem type="success">{t("other.point1")}</FeatureItem>
77-
<FeatureItem type="disabled">{t("other.point2")}</FeatureItem>
78-
<FeatureItem type="success">{t("other.point3")}</FeatureItem>
79-
</>
80-
}
8153
actions={
82-
<Link to="choose-connector" className="flex flex-1 mt-1">
54+
<Link to="choose-connector" className="flex flex-1">
8355
<Button tabIndex={-1} label={t("other.connect")} flex />
8456
</Link>
8557
}
@@ -89,35 +61,3 @@ export default function ChooseConnectorPath() {
8961
</div>
9062
);
9163
}
92-
93-
const FeatureItem = ({
94-
type,
95-
children,
96-
}: {
97-
type: "success" | "disabled" | "warning";
98-
children: React.ReactNode;
99-
}) => (
100-
<div className="flex flex-row items-center space-2">
101-
<div className="mr-2">
102-
{type == "success" && (
103-
<PopiconsCircleCheckLine
104-
key="success"
105-
className="text-green-600 dark:text-green-400 w-6 h-6"
106-
/>
107-
)}
108-
{type == "disabled" && (
109-
<PopiconsCircleXLine
110-
key="disabled"
111-
className="text-gray-400 dark:text-neutral-500 w-6 h-6"
112-
/>
113-
)}
114-
{type == "warning" && (
115-
<PopiconsCircleExclamationLine
116-
key="warning"
117-
className="text-orange-500 w-6 h-6"
118-
/>
119-
)}
120-
</div>
121-
<div className="grow">{children}</div>
122-
</div>
123-
);

src/i18n/locales/de/translation.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -916,19 +916,13 @@
916916
"choose_path": {
917917
"other": {
918918
"title": "Bringe dein eigenes Wallet mit",
919-
"point3": "Sofortiger Start, kein Warten auf eine Einladung",
920-
"point2": "Keine Lightning und Nostr Adresse",
921919
"description": "Am besten ist es, wenn du bereits eine Wallet oder einen Lightning Node besitzt.",
922-
"connect": "Finde deine Wallet",
923-
"point1": "Sowohl Selbstverwahrung als auch Verwahrungsoptionen"
920+
"connect": "Finde deine Wallet"
924921
},
925922
"alby": {
926923
"title": "Alby Konto",
927-
"point3": "Neue Anmeldungen erfordern einen Einladungscode",
928924
"description": "Ideal, wenn du die Anwendungen nutzt und gleichzeitig die Kontrolle über deine Bitcoin behalten möchtest.",
929-
"connect": "Weiter mit Alby Account",
930-
"point2": "Einzigartige Lightning- und Nostr-Adresse",
931-
"point1": "Neues Self-Costodial Wallet — <0>Alby Hub</0>"
925+
"connect": "Weiter mit Alby Account"
932926
},
933927
"title": "Alby Extension mit einer Wallet verbinden"
934928
},

src/i18n/locales/en/translation.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,12 @@
4141
"other": {
4242
"title": "Bring Your Own Wallet",
4343
"description": "Best if you already have a wallet or own a lightning node.",
44-
"connect": "Find Your Wallet",
45-
"point1": "Both self-custody and custodial options",
46-
"point2": "No lightning and nostr address",
47-
"point3": "Start instantly, no waiting for an invite"
44+
"connect": "Find Your Wallet"
4845
},
4946
"alby": {
5047
"title": "Alby Account",
5148
"description": "Ideal If you would like to enjoy apps while staying in control of your bitcoin.",
52-
"connect": "Continue with Alby Account",
53-
"point1": "New self-custodial wallet — <0>Alby Hub</0>",
54-
"point2": "Unique lightning and nostr address",
55-
"point3": "New signups require an invite code"
49+
"connect": "Continue with Alby Account"
5650
}
5751
},
5852
"alby": {

src/i18n/locales/es/translation.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -541,18 +541,12 @@
541541
"choose_path": {
542542
"alby": {
543543
"title": "Cuenta de Alby",
544-
"point1": "Los nuevos registros requieren un código de invitación. Nueva cartera auto-custodiada",
545-
"point2": "Dirección única de lightning y nostr",
546544
"description": "Es ideal si quisieras disfrutar las apps mientras mantienes el control de tu bitcoin",
547-
"connect": "Continuar con la cuenta de Alby",
548-
"point3": "Las nuevas suscripciones requieren un código de invitación"
545+
"connect": "Continuar con la cuenta de Alby"
549546
},
550547
"other": {
551548
"title": "Lleve su propia cartera",
552-
"point1": "Ambas opciones: Autocustodia o custodiada",
553-
"point2": "No hay dirección lightning y nostr",
554549
"description": "Es mejor si ya tienes una cartera o tu propio nodo lightning",
555-
"point3": "Comenzar inmediatamente, no esperar invitación",
556550
"connect": "Encuentra tu cartera"
557551
},
558552
"title": "Conectar la cartera a la extensión Alby"

src/i18n/locales/fa/translation.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@
3737
},
3838
"choose_path": {
3939
"alby": {
40-
"title": "حساب کاربری البی",
41-
"point1": "ثبت نام جدید نیاز به کد دعوت دارد"
40+
"title": "حساب کاربری البی"
4241
},
4342
"other": {
44-
"title": "کیف پول خود را بیاورید",
45-
"point1": "بی درنگ شروع کنید، نیازی به انتظار برای دعوتنامه نیست"
43+
"title": "کیف پول خود را بیاورید"
4644
},
4745
"title": "اتصال کیف پول به افزونه البی"
4846
},

src/i18n/locales/fi/translation.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -754,18 +754,12 @@
754754
"other": {
755755
"description": "Parasta, jos sinulla on jo lompakko tai omistat lightning-solmun.",
756756
"title": "Tuo oma lompakkosi",
757-
"connect": "Löydä lompakkosi",
758-
"point1": "Sekä omahuollon että säilytysvaihtoehdot",
759-
"point3": "Aloita heti, ei kutsun odottamista",
760-
"point2": "Ei lightningia ja nostr-osoitetta"
757+
"connect": "Löydä lompakkosi"
761758
},
762759
"alby": {
763-
"point2": "Ainutlaatuinen lightning ja nostr-osoite",
764760
"connect": "Jatka Alby-tilillä",
765761
"title": "Alby-tili",
766-
"point1": "Uusi omavarainen lompakko — <0>Alby Hub</0>",
767-
"description": "Ihanteellinen, jos haluat nauttia sovelluksista samalla kun hallitset bitcoinejasi.",
768-
"point3": "Uudet rekisteröinnit vaativat kutsukoodin"
762+
"description": "Ihanteellinen, jos haluat nauttia sovelluksista samalla kun hallitset bitcoinejasi."
769763
},
770764
"title": "Yhdistä Alby Extension lompakkoon"
771765
},

src/i18n/locales/hi/translation.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@
3434
},
3535
"choose_path": {
3636
"alby": {
37-
"title": "Alby अकाउंट",
38-
"point1": "नए साइनअप्स के लिए एक इन्वाइट कोड आवश्यक है"
37+
"title": "Alby अकाउंट"
3938
},
4039
"other": {
41-
"title": "अपना वॉलेट लाओ",
42-
"point1": "तुरंत प्रारंभ करें, किसी invite प्रतीक्षा नहीं करनी पड़ेगी"
40+
"title": "अपना वॉलेट लाओ"
4341
},
4442
"title": "वॉलेट को एल्बी एक्सटेंशन से कनेक्ट करें"
4543
},

src/i18n/locales/pt_BR/translation.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -762,19 +762,13 @@
762762
"choose_path": {
763763
"alby": {
764764
"title": "Conta Alby",
765-
"point1": "Nova carteira com autocustódia — <0>Alby Hub</0>",
766765
"connect": "Conecte-se com a Alby",
767-
"point3": "Necessita de convite para criar conta",
768-
"point2": "Endereço relâmpago e nostr exclusivos",
769766
"description": "Ideal para iniciantes que procuram uma ótima carteira para gastos do dia a dia."
770767
},
771768
"other": {
772769
"title": "Outras carteiras",
773-
"point1": "Opções de autocustódia e custódia delegada",
774770
"connect": "Escolher carteira",
775-
"point2": "Sem endereço relâmpago e nostr",
776-
"description": "Ideal para quem já possui uma carteira e deseja conectá-la na extensão.",
777-
"point3": "Pronta para o uso, não precisa de convite"
771+
"description": "Ideal para quem já possui uma carteira e deseja conectá-la na extensão."
778772
},
779773
"title": "Conecte carteiras na extensão Alby"
780774
},

src/i18n/locales/zh_Hans/translation.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -882,18 +882,12 @@
882882
"other": {
883883
"title": "自备钱包",
884884
"connect": "发现你的钱包",
885-
"description": "最好已经拥有钱包或闪电节点。",
886-
"point1": "自托管或代托管选项",
887-
"point2": "无闪电网络或 Nostr 地址",
888-
"point3": "立即开始,无需邀请"
885+
"description": "最好已经拥有钱包或闪电节点。"
889886
},
890887
"alby": {
891888
"title": "Alby帐户",
892889
"description": "同时控制比特币并享受应用的最佳选择。",
893-
"point1": "新的自托管钱包 — <0>Alby Hub</0>",
894-
"point2": "独一无二的闪电网络和 Nostr 地址",
895-
"connect": "使用 Alby 账户",
896-
"point3": "需要邀请码进行注册"
890+
"connect": "使用 Alby 账户"
897891
},
898892
"title": "连接钱包到 Alby 浏览器扩展"
899893
},

0 commit comments

Comments
 (0)