feat(ui): refine club, packs, and download flows
This commit is contained in:
+4
-4
@@ -122,7 +122,7 @@ export default ({
|
||||
|
||||
const handleCoinPress = React.useCallback(() => {
|
||||
if (!showCoinBadge) return
|
||||
setCoinModalVisible(true)
|
||||
navigate(Routes.Payments)
|
||||
}, [showCoinBadge])
|
||||
|
||||
const handleCloseCoinModal = React.useCallback(() => {
|
||||
@@ -144,10 +144,10 @@ export default ({
|
||||
}, [showCoinBadge, isCoinModalVisible])
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!showCoinBadge) {
|
||||
return undefined
|
||||
}
|
||||
const unsubscribe = subscribeCoinPackModal(() => {
|
||||
if (!showCoinBadge) {
|
||||
return
|
||||
}
|
||||
setCoinModalVisible(true)
|
||||
})
|
||||
return unsubscribe
|
||||
|
||||
Reference in New Issue
Block a user