feat: add quick account switch interaction

This commit is contained in:
codytseng 2025-10-26 16:11:21 +08:00
parent f33c5260df
commit ad6b8890c5
24 changed files with 217 additions and 85 deletions

View file

@ -1,3 +1,4 @@
import { LONG_PRESS_THRESHOLD } from '@/constants'
import { useNoteStatsById } from '@/hooks/useNoteStatsById'
import { getLightningAddressFromProfile } from '@/lib/lightning'
import { cn } from '@/lib/utils'
@ -86,7 +87,7 @@ export default function ZapButton({ event }: { event: Event }) {
setOpenZapDialog(true)
setZapping(true)
})
}, 500)
}, LONG_PRESS_THRESHOLD)
}
}