forked from Kieran/snort
chore: formatting
This commit is contained in:
parent
b166427f28
commit
fc3d196f48
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -711,6 +711,9 @@
|
||||
"NndBJE": {
|
||||
"defaultMessage": "New users page"
|
||||
},
|
||||
"O8Z8t9": {
|
||||
"defaultMessage": "Show More"
|
||||
},
|
||||
"O9GTIc": {
|
||||
"defaultMessage": "Profile picture"
|
||||
},
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user