put tooltip back
This commit is contained in:
parent
344d45a8f5
commit
1ab326ab01
@ -88,9 +88,8 @@ export default function UpVote ({ item, className }) {
|
|||||||
return (
|
return (
|
||||||
<LightningConsumer>
|
<LightningConsumer>
|
||||||
{({ strike }) =>
|
{({ strike }) =>
|
||||||
<ActionTooltip notForm disable={noSelfTips} overlayText={overlayText()}>
|
<LongPressable
|
||||||
<LongPressable
|
onLongPress={
|
||||||
onLongPress={
|
|
||||||
async (e) => {
|
async (e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
if (!item || voteLock) return
|
if (!item || voteLock) return
|
||||||
@ -103,7 +102,7 @@ export default function UpVote ({ item, className }) {
|
|||||||
setItem({ itemId: item.id, act, strike })
|
setItem({ itemId: item.id, act, strike })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onShortPress={
|
onShortPress={
|
||||||
me
|
me
|
||||||
? async (e) => {
|
? async (e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
@ -145,7 +144,9 @@ export default function UpVote ({ item, className }) {
|
|||||||
}
|
}
|
||||||
: signIn
|
: signIn
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
<ActionTooltip notForm disable={noSelfTips} overlayText={overlayText()}>
|
||||||
|
|
||||||
<UpArrow
|
<UpArrow
|
||||||
width={24}
|
width={24}
|
||||||
height={24}
|
height={24}
|
||||||
@ -156,8 +157,8 @@ export default function UpVote ({ item, className }) {
|
|||||||
${item?.meVote ? styles.voted : ''}`
|
${item?.meVote ? styles.voted : ''}`
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</LongPressable>
|
</ActionTooltip>
|
||||||
</ActionTooltip>}
|
</LongPressable>}
|
||||||
</LightningConsumer>
|
</LightningConsumer>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user