feat: Nos tarifs on home
This commit is contained in:
@@ -49,6 +49,10 @@ export default function LandingPage() {
|
|||||||
navigation.navigate(Routes.Register);
|
navigation.navigate(Routes.Register);
|
||||||
}, [isAuthenticated, navigation]);
|
}, [isAuthenticated, navigation]);
|
||||||
|
|
||||||
|
const handleOpenSubscriptions = useCallback(() => {
|
||||||
|
navigation.navigate(Routes.Payments);
|
||||||
|
}, [navigation]);
|
||||||
|
|
||||||
const { data: video } = useDataFromRef({
|
const { data: video } = useDataFromRef({
|
||||||
ref: videosRef.doc("fr"),
|
ref: videosRef.doc("fr"),
|
||||||
simpleRef: true,
|
simpleRef: true,
|
||||||
@@ -172,6 +176,13 @@ export default function LandingPage() {
|
|||||||
onPress={handleLaunchAdventure}
|
onPress={handleLaunchAdventure}
|
||||||
containerStyle={styles.actionButton}
|
containerStyle={styles.actionButton}
|
||||||
/>
|
/>
|
||||||
|
{!isAuthenticated ? (
|
||||||
|
<GradientButton
|
||||||
|
title="Nos tarifs"
|
||||||
|
onPress={handleOpenSubscriptions}
|
||||||
|
containerStyle={styles.actionButton}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user