mirror of
https://github.com/lumehq/lume.git
synced 2025-09-29 06:53:44 +02:00
update note metadata
This commit is contained in:
@@ -43,9 +43,9 @@ export default function NoteLike({ id, pubkey, likes }: { id: string; pubkey: st
|
||||
}, [likes]);
|
||||
|
||||
return (
|
||||
<button type="button" onClick={(e) => submitEvent(e)} className="inline-flex w-min items-center gap-1.5">
|
||||
<LikeIcon width={20} height={20} className="text-zinc-400" />
|
||||
<span className="text-sm leading-none text-zinc-400">{count}</span>
|
||||
<button type="button" onClick={(e) => submitEvent(e)} className="group inline-flex w-min items-center gap-1.5">
|
||||
<LikeIcon width={20} height={20} className="text-zinc-400 group-hover:text-rose-400" />
|
||||
<span className="text-sm leading-none text-zinc-400 group-hover:text-zinc-200">{count}</span>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
@@ -54,9 +54,9 @@ export default function NoteReply({ id, replies }: { id: string; replies: number
|
||||
|
||||
return (
|
||||
<>
|
||||
<button type="button" onClick={() => openModal()} className="inline-flex w-min items-center gap-1.5">
|
||||
<ReplyIcon width={20} height={20} className="text-zinc-400" />
|
||||
<span className="text-sm leading-none text-zinc-400">{count}</span>
|
||||
<button type="button" onClick={() => openModal()} className="group inline-flex w-min items-center gap-1.5">
|
||||
<ReplyIcon width={20} height={20} className="text-zinc-400 group-hover:text-green-400" />
|
||||
<span className="text-sm leading-none text-zinc-400 group-hover:text-zinc-200">{count}</span>
|
||||
</button>
|
||||
<Transition appear show={isOpen} as={Fragment}>
|
||||
<Dialog as="div" className="relative z-10" onClose={closeModal}>
|
||||
|
@@ -43,9 +43,9 @@ export default function NoteRepost({ id, pubkey, reposts }: { id: string; pubkey
|
||||
}, [reposts]);
|
||||
|
||||
return (
|
||||
<button type="button" onClick={(e) => submitEvent(e)} className="inline-flex w-min items-center gap-1.5">
|
||||
<RepostIcon width={20} height={20} className="text-zinc-400" />
|
||||
<span className="text-sm leading-none text-zinc-400">{count}</span>
|
||||
<button type="button" onClick={(e) => submitEvent(e)} className="group inline-flex w-min items-center gap-1.5">
|
||||
<RepostIcon width={20} height={20} className="text-zinc-400 group-hover:text-blue-400" />
|
||||
<span className="text-sm leading-none text-zinc-400 group-hover:text-zinc-200">{count}</span>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
@@ -56,9 +56,9 @@ export default function NoteMetadata({ id, eventPubkey }: { id: string; eventPub
|
||||
<NoteReply id={id} replies={replies} />
|
||||
<NoteLike id={id} pubkey={eventPubkey} likes={likes} />
|
||||
<NoteRepost id={id} pubkey={eventPubkey} reposts={reposts} />
|
||||
<button className="inline-flex w-min items-center gap-1.5">
|
||||
<ZapIcon width={20} height={20} className="text-zinc-400" />
|
||||
<span className="text-sm leading-none text-zinc-400">{0}</span>
|
||||
<button className="group inline-flex w-min items-center gap-1.5">
|
||||
<ZapIcon width={20} height={20} className="text-zinc-400 group-hover:text-orange-400" />
|
||||
<span className="text-sm leading-none text-zinc-400 group-hover:text-zinc-200">{0}</span>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user