chore: formatting
This commit is contained in:
parent
b166427f28
commit
fc3d196f48
@ -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>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user