show (disabled) repost btn even when not logged in
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Martti Malmi 2024-02-02 15:46:29 +02:00
parent 523fd1a0ba
commit 5ea195a341
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default function NoteFooter(props: NoteFooterProps) {
return (
<div className="flex flex-row gap-4 overflow-hidden max-w-full h-6 items-center">
<ReplyButton ev={ev} replyCount={props.replyCount} readonly={readonly} />
{!readonly && <RepostButton ev={ev} reposts={reposts} />}
<RepostButton ev={ev} reposts={reposts} />
{prefs.enableReactions && <LikeButton ev={ev} positiveReactions={positive} />}
{CONFIG.showPowIcon && <PowIcon ev={ev} />}
<FooterZapButton ev={ev} zaps={zaps} onClickZappers={() => setShowReactions(true)} />

View File

@ -36,6 +36,7 @@ export const RepostButton = ({ ev, reposts }: { ev: TaggedNostrEvent; reposts: T
<Menu
menuButton={
<AsyncFooterIcon
disabled={!publisher}
className={classNames(
"flex-none min-w-[50px] md:min-w-[80px]",
hasReposted() ? "reacted text-nostr-blue" : "hover:text-nostr-blue",