chore: formatting

This commit is contained in:
2023-12-05 12:58:50 +00:00
parent 13edd58987
commit 1c6ff7f729
6 changed files with 235 additions and 218 deletions

View File

@ -1,5 +1,5 @@
import { Button as AlbyZapsButton } from "@getalby/bitcoin-connect-react"; import { Button as AlbyZapsButton } from "@getalby/bitcoin-connect-react";
export default function AlbyButton() { export default function AlbyButton() {
return <AlbyZapsButton /> return <AlbyZapsButton />;
} }

View File

@ -140,6 +140,9 @@
"GGaJMU": { "GGaJMU": {
"defaultMessage": "Top Chatters" "defaultMessage": "Top Chatters"
}, },
"Gmiwnd": {
"defaultMessage": "Refresh the page to use the latest version"
},
"Gq6x9o": { "Gq6x9o": {
"defaultMessage": "Cover Image" "defaultMessage": "Cover Image"
}, },
@ -227,6 +230,9 @@
"Qe1MJu": { "Qe1MJu": {
"defaultMessage": "{name} with {amount}" "defaultMessage": "{name} with {amount}"
}, },
"RJ2VxG": {
"defaultMessage": "A new version has been detected"
},
"RJOmzk": { "RJOmzk": {
"defaultMessage": "I have read and agree with {provider}''s {terms}." "defaultMessage": "I have read and agree with {provider}''s {terms}."
}, },
@ -381,6 +387,9 @@
"r2Jjms": { "r2Jjms": {
"defaultMessage": "Log In" "defaultMessage": "Log In"
}, },
"rELDbB": {
"defaultMessage": "Refresh"
},
"rWBFZA": { "rWBFZA": {
"defaultMessage": "Sexually explicit material ahead!" "defaultMessage": "Sexually explicit material ahead!"
}, },

View File

@ -145,10 +145,14 @@ export function LayoutPage() {
} }
function NewVersionBanner() { function NewVersionBanner() {
const newVersion = useSyncExternalStore(c => NewVersion.hook(c), () => NewVersion.snapshot()); const newVersion = useSyncExternalStore(
c => NewVersion.hook(c),
() => NewVersion.snapshot()
);
if (!newVersion) return; if (!newVersion) return;
return <div className="fixed top-0 left-0 w-max flex bg-slate-800 py-2 px-4 opacity-95"> return (
<div className="fixed top-0 left-0 w-max flex bg-slate-800 py-2 px-4 opacity-95">
<div className="grow"> <div className="grow">
<h1> <h1>
<FormattedMessage defaultMessage="A new version has been detected" id="RJ2VxG" /> <FormattedMessage defaultMessage="A new version has been detected" id="RJ2VxG" />
@ -161,4 +165,5 @@ function NewVersionBanner() {
<FormattedMessage defaultMessage="Refresh" id="rELDbB" /> <FormattedMessage defaultMessage="Refresh" id="rELDbB" />
</AsyncButton> </AsyncButton>
</div> </div>
);
} }

View File

@ -46,6 +46,7 @@
"Fodi9+": "Get paid by viewers", "Fodi9+": "Get paid by viewers",
"G/yZLu": "Remove", "G/yZLu": "Remove",
"GGaJMU": "Top Chatters", "GGaJMU": "Top Chatters",
"Gmiwnd": "Refresh the page to use the latest version",
"Gq6x9o": "Cover Image", "Gq6x9o": "Cover Image",
"H/bNs9": "Save this and keep it safe! If you lose this key, you won't be able to access your account ever again. Yep, it's that serious!", "H/bNs9": "Save this and keep it safe! If you lose this key, you won't be able to access your account ever again. Yep, it's that serious!",
"H5+NAX": "Balance", "H5+NAX": "Balance",
@ -75,6 +76,7 @@
"QRRCp0": "Stream URL", "QRRCp0": "Stream URL",
"QceMQZ": "Goal: {amount}", "QceMQZ": "Goal: {amount}",
"Qe1MJu": "{name} with {amount}", "Qe1MJu": "{name} with {amount}",
"RJ2VxG": "A new version has been detected",
"RJOmzk": "I have read and agree with {provider}''s {terms}.", "RJOmzk": "I have read and agree with {provider}''s {terms}.",
"RXQdxR": "Please login to write messages!", "RXQdxR": "Please login to write messages!",
"RrCui3": "Summary", "RrCui3": "Summary",
@ -126,6 +128,7 @@
"oZrFyI": "Stream type should be HLS", "oZrFyI": "Stream type should be HLS",
"pO/lPX": "Scheduled for {date}", "pO/lPX": "Scheduled for {date}",
"r2Jjms": "Log In", "r2Jjms": "Log In",
"rELDbB": "Refresh",
"rWBFZA": "Sexually explicit material ahead!", "rWBFZA": "Sexually explicit material ahead!",
"rbrahO": "Close", "rbrahO": "Close",
"rfC1Zq": "Save card", "rfC1Zq": "Save card",