chore: formatting
This commit is contained in:
parent
2e789b222c
commit
52fe83d815
@ -189,7 +189,8 @@ export default function NostrProviderDialog({
|
||||
|
||||
function currentBalance() {
|
||||
if (!info) return;
|
||||
return <div>
|
||||
return (
|
||||
<div>
|
||||
<p>
|
||||
<FormattedMessage defaultMessage="Balance" id="H5+NAX" />
|
||||
</p>
|
||||
@ -205,15 +206,18 @@ export default function NostrProviderDialog({
|
||||
<AccountWithdrawl provider={provider} onFinish={loadInfo} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function balanceTimeEstimate() {
|
||||
if (!info) return;
|
||||
return <div>
|
||||
return (
|
||||
<div>
|
||||
<small>
|
||||
<FormattedMessage defaultMessage="About {estimate}" values={{ estimate: calcEstimate() }} />
|
||||
</small>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function streamEditor() {
|
||||
|
@ -31,9 +31,9 @@ export function useCurrentStreamFeed(link: NostrLink, leaveOpen = false, evPrelo
|
||||
const q = useRequestBuilder(sub);
|
||||
|
||||
return useMemo(() => {
|
||||
const hosting = [...q, ...(evPreload ? [evPreload] : [])].filter(
|
||||
a => getHost(a) === author || a.pubkey === author
|
||||
).sort((a, b) => (b.created_at > a.created_at ? 1 : -1));
|
||||
const hosting = [...q, ...(evPreload ? [evPreload] : [])]
|
||||
.filter(a => getHost(a) === author || a.pubkey === author)
|
||||
.sort((a, b) => (b.created_at > a.created_at ? 1 : -1));
|
||||
return hosting.at(0);
|
||||
}, [q]);
|
||||
}
|
||||
|
@ -171,9 +171,11 @@ export class NostrStreamProvider implements StreamProvider {
|
||||
|
||||
const u = `${this.url}${path}`;
|
||||
const token = await pub.generic(eb => {
|
||||
return eb.kind(EventKind.HttpAuthentication)
|
||||
return eb
|
||||
.kind(EventKind.HttpAuthentication)
|
||||
.content("")
|
||||
.tag(["u", u]).tag(["method", method])
|
||||
.tag(["u", u])
|
||||
.tag(["method", method])
|
||||
.createdAt(unixNow() + Math.floor(TimeSync / 1000));
|
||||
});
|
||||
const rsp = await fetch(u, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user