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]); }, [inView]);
return <div className={classNames("show-more-container", className)} ref={ref}> return (
{text} <div className={classNames("show-more-container", className)} ref={ref}>
</div> {text}
} </div>
);
}

View File

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

View File

@ -113,7 +113,9 @@ export default function NotificationsPage({ onClick }: { onClick?: (link: NostrL
<NotificationSummary evs={myNotifications as TaggedNostrEvent[]} /> <NotificationSummary evs={myNotifications as TaggedNostrEvent[]} />
{login.publicKey && {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))} /> <ShowMoreInView onClick={() => setShowN(s => Math.min(timeGrouped.size, s + 5))} />
</div> </div>

View File

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

View File

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