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";
export default function AlbyButton() {
return <AlbyZapsButton />
return <AlbyZapsButton />;
}

View File

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

View File

@ -145,10 +145,14 @@ export function LayoutPage() {
}
function NewVersionBanner() {
const newVersion = useSyncExternalStore(c => NewVersion.hook(c), () => NewVersion.snapshot());
const newVersion = useSyncExternalStore(
c => NewVersion.hook(c),
() => NewVersion.snapshot()
);
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">
<h1>
<FormattedMessage defaultMessage="A new version has been detected" id="RJ2VxG" />
@ -161,4 +165,5 @@ function NewVersionBanner() {
<FormattedMessage defaultMessage="Refresh" id="rELDbB" />
</AsyncButton>
</div>
);
}

View File

@ -46,6 +46,7 @@
"Fodi9+": "Get paid by viewers",
"G/yZLu": "Remove",
"GGaJMU": "Top Chatters",
"Gmiwnd": "Refresh the page to use the latest version",
"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!",
"H5+NAX": "Balance",
@ -75,6 +76,7 @@
"QRRCp0": "Stream URL",
"QceMQZ": "Goal: {amount}",
"Qe1MJu": "{name} with {amount}",
"RJ2VxG": "A new version has been detected",
"RJOmzk": "I have read and agree with {provider}''s {terms}.",
"RXQdxR": "Please login to write messages!",
"RrCui3": "Summary",
@ -126,6 +128,7 @@
"oZrFyI": "Stream type should be HLS",
"pO/lPX": "Scheduled for {date}",
"r2Jjms": "Log In",
"rELDbB": "Refresh",
"rWBFZA": "Sexually explicit material ahead!",
"rbrahO": "Close",
"rfC1Zq": "Save card",