go back to home
This commit is contained in:
@@ -107,6 +107,14 @@ import profile from './UI/profile.jpg'
|
|||||||
import musiclandClub from './UI/musiclandClub.png'
|
import musiclandClub from './UI/musiclandClub.png'
|
||||||
import frenchFlag from './icons/frenchFlag.png'
|
import frenchFlag from './icons/frenchFlag.png'
|
||||||
import englishFlag from './icons/englishFlag.png'
|
import englishFlag from './icons/englishFlag.png'
|
||||||
|
|
||||||
|
import credits50 from './packs/credits50.png'
|
||||||
|
import credits110 from './packs/credits110.png'
|
||||||
|
import credits150 from './packs/credits150.png'
|
||||||
|
import credits180 from './packs/credits180.png'
|
||||||
|
import credits450 from './packs/credits450.png'
|
||||||
|
import credits750 from './packs/credits750.png'
|
||||||
|
|
||||||
export const tabs = {
|
export const tabs = {
|
||||||
home,
|
home,
|
||||||
tasks,
|
tasks,
|
||||||
@@ -194,6 +202,14 @@ export const icons = {
|
|||||||
clubIcon: require('./icons/clubIcon.png'),
|
clubIcon: require('./icons/clubIcon.png'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const packs= {
|
||||||
|
credits50,
|
||||||
|
credits110,
|
||||||
|
credits150,
|
||||||
|
credits180,
|
||||||
|
credits450,
|
||||||
|
credits750
|
||||||
|
}
|
||||||
export const background = {
|
export const background = {
|
||||||
writingBG,
|
writingBG,
|
||||||
writingBgWeb: require('./UI/writingBgWeb.png'),
|
writingBgWeb: require('./UI/writingBgWeb.png'),
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
@@ -22,6 +22,8 @@ import GradientButton from '../../../components/GradientButton'
|
|||||||
import AppCheckbox from '../../../components/AppCheckbox'
|
import AppCheckbox from '../../../components/AppCheckbox'
|
||||||
import { subBadges, icons } from '../../../assets'
|
import { subBadges, icons } from '../../../assets'
|
||||||
import { isWeb } from '../../../hooks/useLayoutType'
|
import { isWeb } from '../../../hooks/useLayoutType'
|
||||||
|
import { navigate } from '../../../navigation/NavigationService'
|
||||||
|
import { Routes } from '../../../navigation'
|
||||||
|
|
||||||
// --- HELPER FUNCTIONS & CONSTANTS (Copied from Subscriptions.js) ---
|
// --- 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] || []
|
const currentPlans = normalizedPlansByPeriod[selectedPeriodKey] || []
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -533,10 +540,7 @@ const ShareAndCreditsModal = ({
|
|||||||
</View>
|
</View>
|
||||||
<GradientButton
|
<GradientButton
|
||||||
title="Diffuser"
|
title="Diffuser"
|
||||||
onPress={() => {
|
onPress={handleGoHome}
|
||||||
// No-op for now
|
|
||||||
console.log('Diffuser pressed', { hasAcceptedPublication })
|
|
||||||
}}
|
|
||||||
disabled={!hasAcceptedPublication}
|
disabled={!hasAcceptedPublication}
|
||||||
containerStyle={styles.broadcastButton}
|
containerStyle={styles.broadcastButton}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user