more minimal reactions

This commit is contained in:
Alejandro Gomez 2023-01-16 00:14:52 +01:00
parent 548e3ae67b
commit 8fb06e5765
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -63,12 +63,12 @@ export default function NoteReaction(props) {
const root = extractRoot(); const root = extractRoot();
const opt = { const opt = {
showHeader: ev?.Kind === EventKind.Repost, showHeader: ev?.Kind === EventKind.Repost,
showFooter: ev?.Kind === EventKind.Repost showFooter: false,
}; };
return ( return (
<div className="reaction"> <div className="reaction">
<div className="header flex"> <div className="header flex">
<ProfileImage pubkey={ev.RootPubKey} subHeader={tagLine()} /> <ProfileImage pubkey={ev.RootPubKey} />
<div className="info"> <div className="info">
<NoteTime from={ev.CreatedAt * 1000} /> <NoteTime from={ev.CreatedAt * 1000} />
</div> </div>
@ -78,4 +78,4 @@ export default function NoteReaction(props) {
{!root && refEvent ? <p><Link to={eventLink(refEvent)}>#{hexToBech32("note", refEvent).substring(0, 12)}</Link></p> : null} {!root && refEvent ? <p><Link to={eventLink(refEvent)}>#{hexToBech32("note", refEvent).substring(0, 12)}</Link></p> : null}
</div> </div>
); );
} }