go back to home
This commit is contained in:
@@ -22,6 +22,8 @@ import GradientButton from '../../../components/GradientButton'
|
||||
import AppCheckbox from '../../../components/AppCheckbox'
|
||||
import { subBadges, icons } from '../../../assets'
|
||||
import { isWeb } from '../../../hooks/useLayoutType'
|
||||
import { navigate } from '../../../navigation/NavigationService'
|
||||
import { Routes } from '../../../navigation'
|
||||
|
||||
// --- HELPER FUNCTIONS & CONSTANTS (Copied from Subscriptions.js) ---
|
||||
|
||||
@@ -379,6 +381,11 @@ const ShareAndCreditsModal = ({
|
||||
}
|
||||
}
|
||||
|
||||
const handleGoHome = useCallback(() => {
|
||||
setIsVisible(false)
|
||||
navigate(Routes.Home)
|
||||
}, [setIsVisible])
|
||||
|
||||
const currentPlans = normalizedPlansByPeriod[selectedPeriodKey] || []
|
||||
|
||||
return (
|
||||
@@ -533,10 +540,7 @@ const ShareAndCreditsModal = ({
|
||||
</View>
|
||||
<GradientButton
|
||||
title="Diffuser"
|
||||
onPress={() => {
|
||||
// No-op for now
|
||||
console.log('Diffuser pressed', { hasAcceptedPublication })
|
||||
}}
|
||||
onPress={handleGoHome}
|
||||
disabled={!hasAcceptedPublication}
|
||||
containerStyle={styles.broadcastButton}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user