feat: add nwc alby link on connect page

This commit is contained in:
Kieran 2023-05-17 13:09:19 +01:00
parent e0251ab389
commit 823bf431a5
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 17 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import { v4 as uuid } from "uuid";
import AsyncButton from "Element/AsyncButton";
import { unwrap } from "Util";
import { WalletConfig, WalletKind, Wallets } from "Wallet";
import { useNavigate } from "react-router-dom";
import { Link, useNavigate } from "react-router-dom";
import { NostrConnectWallet } from "Wallet/NostrWalletConnect";
const ConnectNostrWallet = () => {
@ -63,6 +63,18 @@ const ConnectNostrWallet = () => {
</AsyncButton>
</div>
{error && <b className="error p10">{error}</b>}
<p>
<FormattedMessage
defaultMessage="Using Alby? Go to {link} to get your NWC config!"
values={{
link: (
<Link to="https://nwc.getalby.com/" target="_blank">
nwc.getalby.com
</Link>
),
}}
/>
</p>
</>
);
};

View File

@ -794,6 +794,9 @@
"cE4Hfw": {
"defaultMessage": "Discover"
},
"cFbU1B": {
"defaultMessage": "Using Alby? Go to {link} to get your NWC config!"
},
"cPIKU2": {
"defaultMessage": "Following"
},

View File

@ -259,6 +259,7 @@
"c35bj2": "If you have an enquiry about your NIP-05 order please DM {link}",
"c3g2hL": "Broadcast Again",
"cE4Hfw": "Discover",
"cFbU1B": "Using Alby? Go to {link} to get your NWC config!",
"cPIKU2": "Following",
"cQfLWb": "URL..",
"cWx9t8": "Mute all",