diff --git a/components/comment.js b/components/comment.js index 62e455f3..e5989728 100644 --- a/components/comment.js +++ b/components/comment.js @@ -149,7 +149,7 @@ export default function Comment ({ ? : item.meDontLikeSats > item.meSats ? - : pin ? : } + : pin ? : }
{item.user?.meMute && !includeParent && collapse === 'yep' diff --git a/components/upvote.js b/components/upvote.js index d152e368..9db08819 100644 --- a/components/upvote.js +++ b/components/upvote.js @@ -103,7 +103,7 @@ export const nextTip = (meSats, { tipDefault, turboTipping, tipRandom, tipRandom return defaultTipIncludingRandom({ tipDefault, tipRandom, tipRandomMin, tipRandomMax }) } -export default function UpVote ({ item, className }) { +export default function UpVote ({ item, className, collapsed }) { const showModal = useShowModal() const [voteShow, _setVoteShow] = useState(false) const [tipShow, _setTipShow] = useState(false) @@ -150,8 +150,8 @@ export default function UpVote ({ item, className }) { const zap = useZap() - const disabled = useMemo(() => item?.mine || item?.meForward || item?.deletedAt, - [item?.mine, item?.meForward, item?.deletedAt]) + const disabled = useMemo(() => collapsed || item?.mine || item?.meForward || item?.deletedAt, + [collapsed, item?.mine, item?.meForward, item?.deletedAt]) const [meSats, overlayText, color, nextColor] = useMemo(() => { const meSats = (me ? item?.meSats : item?.meAnonSats) || 0 @@ -244,9 +244,7 @@ export default function UpVote ({ item, className }) { onShortPress={handleShortPress} > -
+
setHover(true)} onMouseLeave={() => setHover(false)}