mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-07-12 21:32:19 +02:00
small fix for vote buttons
This commit is contained in:
@ -63,7 +63,7 @@ export default function PostVoteButtons({
|
|||||||
variant={hasUpVote ? "solid" : "ghost"}
|
variant={hasUpVote ? "solid" : "ghost"}
|
||||||
isLoading={loading}
|
isLoading={loading}
|
||||||
onClick={() => addVote("+")}
|
onClick={() => addVote("+")}
|
||||||
isDisabled={!account || !!hasUpVote}
|
isDisabled={!account || !!hasUpVote || !!hasDownVote}
|
||||||
colorScheme={hasUpVote ? "primary" : "gray"}
|
colorScheme={hasUpVote ? "primary" : "gray"}
|
||||||
/>
|
/>
|
||||||
{(up || down) && <Text my="1">{vote}</Text>}
|
{(up || down) && <Text my="1">{vote}</Text>}
|
||||||
@ -75,7 +75,7 @@ export default function PostVoteButtons({
|
|||||||
variant={hasDownVote ? "solid" : "ghost"}
|
variant={hasDownVote ? "solid" : "ghost"}
|
||||||
isLoading={loading}
|
isLoading={loading}
|
||||||
onClick={() => addVote("-")}
|
onClick={() => addVote("-")}
|
||||||
isDisabled={!account || !!hasUpVote}
|
isDisabled={!account || !!hasUpVote || !!hasDownVote}
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user