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