chore: formatting

This commit is contained in:
Kieran 2023-11-07 12:37:23 +00:00
parent b166427f28
commit fc3d196f48
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
5 changed files with 15 additions and 9 deletions

View File

@ -31,7 +31,9 @@ export function ShowMoreInView({ text, onClick, className }: ShowMoreProps) {
}
}, [inView]);
return <div className={classNames("show-more-container", className)} ref={ref}>
{text}
</div>
}
return (
<div className={classNames("show-more-container", className)} ref={ref}>
{text}
</div>
);
}

View File

@ -26,9 +26,7 @@ export default function useRelaysFeedFollows(pubkeys: HexKey[]): Array<RelayList
return {
pubkey: ev.pubkey,
created_at: ev.created_at,
relays: ev.tags
.map(parseRelayTag)
.filter(a => a.url !== undefined),
relays: ev.tags.map(parseRelayTag).filter(a => a.url !== undefined),
};
});
}
@ -48,4 +46,4 @@ export function parseRelayTag(tag: Array<string>) {
write: tag[2] === "write" || tag[2] === undefined,
},
} as FullRelaySettings;
}
}

View File

@ -113,7 +113,9 @@ export default function NotificationsPage({ onClick }: { onClick?: (link: NostrL
<NotificationSummary evs={myNotifications as TaggedNostrEvent[]} />
{login.publicKey &&
[...timeGrouped.entries()].slice(0, showN).map(([k, g]) => <NotificationGroup key={k} evs={g} onClick={onClick} />)}
[...timeGrouped.entries()]
.slice(0, showN)
.map(([k, g]) => <NotificationGroup key={k} evs={g} onClick={onClick} />)}
<ShowMoreInView onClick={() => setShowN(s => Math.min(timeGrouped.size, s + 5))} />
</div>

View File

@ -711,6 +711,9 @@
"NndBJE": {
"defaultMessage": "New users page"
},
"O8Z8t9": {
"defaultMessage": "Show More"
},
"O9GTIc": {
"defaultMessage": "Profile picture"
},

View File

@ -233,6 +233,7 @@
"NepkXH": "Can't vote with {amount} sats, please set a different default zap amount",
"NfNk2V": "Your private key",
"NndBJE": "New users page",
"O8Z8t9": "Show More",
"O9GTIc": "Profile picture",
"OEW7yJ": "Zaps",
"OKhRC6": "Share",