diff --git a/src/element/login-signup.tsx b/src/element/login-signup.tsx index 94b2c43..21279f9 100644 --- a/src/element/login-signup.tsx +++ b/src/element/login-signup.tsx @@ -74,7 +74,7 @@ export function LoginSignup({ close }: { close: () => void }) { function createAccount() { const newKey = bytesToHex(schnorr.utils.randomPrivateKey()); setNewKey(newKey); - setLnAddress(`${getPublicKey(newKey)}@zap.stream`) + setLnAddress(`${getPublicKey(newKey)}@zap.stream`); setStage(Stage.Details); } @@ -106,7 +106,7 @@ export function LoginSignup({ close }: { close: () => void }) { const info = await px.info(); setProviderInfo(info); - setStage(Stage.LnAddress) + setStage(Stage.LnAddress); } async function saveProfile() { @@ -116,9 +116,11 @@ export function LoginSignup({ close }: { close: () => void }) { const lnurl = new LNURL(lnAddress); await lnurl.load(); } catch { - throw new Error(formatMessage({ - defaultMessage: "Hmm, your lightning address looks wrong" - })); + throw new Error( + formatMessage({ + defaultMessage: "Hmm, your lightning address looks wrong", + }) + ); } const pub = EventPublisher.privateKey(key); const profile = { @@ -162,11 +164,13 @@ export function LoginSignup({ close }: { close: () => void }) {
- {hasNostrExtension && <> - - - - } + {hasNostrExtension && ( + <> + + + + + )} @@ -184,22 +188,35 @@ export function LoginSignup({ close }: { close: () => void }) {

- - - - }} /> + + + + ), + }} + />

- setNewKey(e.target.value)} placeholder={formatMessage({ defaultMessage: "eg. nsec1xyz" })} /> + setNewKey(e.target.value)} + placeholder={formatMessage({ defaultMessage: "eg. nsec1xyz" })} + />
- @@ -210,7 +227,7 @@ export function LoginSignup({ close }: { close: () => void }) { {error && {error}}
- ) + ); } case Stage.Details: { return ( @@ -234,7 +251,12 @@ export function LoginSignup({ close }: { close: () => void }) {
- setUsername(e.target.value)} /> + setUsername(e.target.value)} + />
@@ -258,14 +280,24 @@ export function LoginSignup({ close }: { close: () => void }) {

- {providerInfo?.balance &&

- - }} /> -

} + {providerInfo?.balance && ( +

+ , + }} + /> +

+ )}
- setLnAddress(e.target.value)} /> + setLnAddress(e.target.value)} + />
@@ -277,7 +309,7 @@ export function LoginSignup({ close }: { close: () => void }) {
- ) + ); } case Stage.SaveKey: { return ( diff --git a/src/lang.json b/src/lang.json index c27bd89..efce7e3 100644 --- a/src/lang.json +++ b/src/lang.json @@ -89,9 +89,18 @@ "BGxpTN": { "defaultMessage": "Stream Chat" }, + "Bep/gA": { + "defaultMessage": "Private key" + }, "C81/uG": { "defaultMessage": "Logout" }, + "D3idYv": { + "defaultMessage": "Settings" + }, + "DZKuuP": { + "defaultMessage": "Logged in as" + }, "Dn82AL": { "defaultMessage": "Live" }, @@ -155,6 +164,9 @@ "O2Cy6m": { "defaultMessage": "Yes, I am over 18" }, + "OEW7yJ": { + "defaultMessage": "Zaps" + }, "OKhRC6": { "defaultMessage": "Share" }, @@ -194,6 +206,9 @@ "TaTRKo": { "defaultMessage": "Start Stream" }, + "TwyMau": { + "defaultMessage": "Account" + }, "UJBFYK": { "defaultMessage": "Add Card" }, diff --git a/src/pages/settings-page.tsx b/src/pages/settings-page.tsx index a9289f6..250b298 100644 --- a/src/pages/settings-page.tsx +++ b/src/pages/settings-page.tsx @@ -10,7 +10,7 @@ import Copy from "element/copy"; const enum Tab { Account, - Notifications + Notifications, } export function SettingsPage() { @@ -53,7 +53,7 @@ export function SettingsPage() { - ) + ); } } } @@ -69,12 +69,9 @@ export function SettingsPage() {
-
- {tabContent()} -
+
{tabContent()}
- ); } diff --git a/src/translations/en.json b/src/translations/en.json index 4ac86fb..d3ee781 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -29,7 +29,10 @@ "Atr2p4": "NSFW Content", "AyGauy": "Login", "BGxpTN": "Stream Chat", + "Bep/gA": "Private key", "C81/uG": "Logout", + "D3idYv": "Settings", + "DZKuuP": "Logged in as", "Dn82AL": "Live", "ESyhzp": "Your comment for {name}", "FjDlus": "You can always replace it with your own address later.", @@ -51,6 +54,7 @@ "LknBsU": "Stream Key", "My6HwN": "Ok, it's safe", "O2Cy6m": "Yes, I am over 18", + "OEW7yJ": "Zaps", "OKhRC6": "Share", "OWgHbg": "Edit card", "Oxqtyf": "We hooked you up with a lightning wallet so you can get paid by viewers right away!", @@ -64,6 +68,7 @@ "RrCui3": "Summary", "TP/cMX": "Ended", "TaTRKo": "Start Stream", + "TwyMau": "Account", "UJBFYK": "Add Card", "UfSot5": "Past Streams", "VA/Z1S": "Hide", @@ -121,4 +126,4 @@ "x82IOl": "Mute", "yzKwBQ": "eg. nsec1xyz", "zVDHAu": "Zap Alert" -} \ No newline at end of file +} diff --git a/src/translations/fa_IR.json b/src/translations/fa_IR.json index 571f02e..5c3d772 100644 --- a/src/translations/fa_IR.json +++ b/src/translations/fa_IR.json @@ -366,4 +366,3 @@ "defaultMessage": "هشدار زپ" } } - diff --git a/src/translations/sw_KE.json b/src/translations/sw_KE.json index 3ffbc3e..e599957 100644 --- a/src/translations/sw_KE.json +++ b/src/translations/sw_KE.json @@ -366,4 +366,3 @@ "defaultMessage": "Tahadhari ya Zap" } } -