remove window flow
This commit is contained in:
parent
4d3ab603da
commit
540368e2a6
@ -6,7 +6,6 @@ import { signIn } from 'next-auth/client'
|
|||||||
import { useFundError } from './fund-error'
|
import { useFundError } from './fund-error'
|
||||||
import ActionTooltip from './action-tooltip'
|
import ActionTooltip from './action-tooltip'
|
||||||
import { useItemAct } from './item-act'
|
import { useItemAct } from './item-act'
|
||||||
import Window from '../svgs/window-2-fill.svg'
|
|
||||||
import { useMe } from './me'
|
import { useMe } from './me'
|
||||||
import { useRef, useState } from 'react'
|
import { useRef, useState } from 'react'
|
||||||
import LongPressable from 'react-longpressable'
|
import LongPressable from 'react-longpressable'
|
||||||
@ -174,11 +173,9 @@ export default function UpVote ({ item, className }) {
|
|||||||
if (me?.tipDefault) {
|
if (me?.tipDefault) {
|
||||||
return `${me.tipDefault} sat${me.tipDefault > 1 ? 's' : ''}`
|
return `${me.tipDefault} sat${me.tipDefault > 1 ? 's' : ''}`
|
||||||
}
|
}
|
||||||
return <Window style={{ fill: '#fff' }} width={18} height={18} />
|
|
||||||
}
|
|
||||||
|
|
||||||
return '1 sat'
|
return '1 sat'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const noSelfTips = item?.meVote && item?.mine
|
const noSelfTips = item?.meVote && item?.mine
|
||||||
// 12 px default height
|
// 12 px default height
|
||||||
@ -218,18 +215,14 @@ export default function UpVote ({ item, className }) {
|
|||||||
|
|
||||||
if (item?.meVote) {
|
if (item?.meVote) {
|
||||||
setVoteShow(false)
|
setVoteShow(false)
|
||||||
if (me?.tipDefault) {
|
|
||||||
try {
|
try {
|
||||||
strike()
|
strike()
|
||||||
await act({ variables: { id: item.id, act: 'TIP', sats: me.tipDefault } })
|
await act({ variables: { id: item.id, act: 'TIP', sats: me.tipDefault || 1 } })
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
setItem({ itemId: item.id, act, strike })
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
strike()
|
strike()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user