From 307d4b951b9e24b35152c52646d1b30fd22ad6f4 Mon Sep 17 00:00:00 2001 From: leon-morival Date: Tue, 9 Dec 2025 09:36:34 +0100 Subject: [PATCH 1/2] feat: free credits --- src/config/firebase.js | 8 +++--- src/screens/LandingPage.js | 50 +++++++++++++++++++------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/config/firebase.js b/src/config/firebase.js index 79f0074..f6e808d 100644 --- a/src/config/firebase.js +++ b/src/config/firebase.js @@ -28,7 +28,7 @@ const configureFunctionsEmulator = (instance, regionKey = "us-central1") => { } catch (error) { console.warn( `[firebase] Unable to set functions emulator for region ${regionKey}`, - error?.message, + error?.message ); } }; @@ -50,9 +50,9 @@ if (!firebase?.apps?.filter(({ name_ }) => name_ === "[DEFAULT]").length) { persistence: getReactNativePersistence(AsyncStorage), }); - if (__DEV__) { - firebase.functions().useEmulator("localhost", 5001); - } + // if (__DEV__) { + // firebase.functions().useEmulator("localhost", 5001); + // } const defaultFunctions = firebase.functions(); functionsInstances["us-central1"] = defaultFunctions; configureFunctionsEmulator(defaultFunctions, "us-central1"); diff --git a/src/screens/LandingPage.js b/src/screens/LandingPage.js index 812ed28..1d46455 100644 --- a/src/screens/LandingPage.js +++ b/src/screens/LandingPage.js @@ -120,31 +120,6 @@ export default function LandingPage() { )} {selectedLanguage && ( - {showFreeCreditsPopup && ( - - - - - Tu as 5 crédits gratuits - - - pour 1 parcours offert ! - - - setShowFreeCreditsPopup(false)} - accessibilityRole="button" - accessibilityLabel="Fermer le message des crédits offerts" - style={styles.freeCreditsClose} - > - - - - - )} setVideoUrl(video?.introWeb)} @@ -177,6 +152,31 @@ export default function LandingPage() { containerStyle={styles.actionButton} /> ) : null} + {showFreeCreditsPopup && ( + + + + + 5 crédits offert + + + pour 1 parcours gratuit ! + + + setShowFreeCreditsPopup(false)} + accessibilityRole="button" + accessibilityLabel="Fermer le message des crédits offerts" + style={styles.freeCreditsClose} + > + + + + + )} )} From 91e4aff1a398537894fd8fa612981fc3fb0ffc34 Mon Sep 17 00:00:00 2001 From: leon-morival Date: Tue, 9 Dec 2025 09:42:18 +0100 Subject: [PATCH 2/2] feat: remove start button --- src/screens/Home/Home.js | 112 +++++++++++++++------------------------ 1 file changed, 42 insertions(+), 70 deletions(-) diff --git a/src/screens/Home/Home.js b/src/screens/Home/Home.js index c03c6b4..f8d17b1 100644 --- a/src/screens/Home/Home.js +++ b/src/screens/Home/Home.js @@ -629,80 +629,52 @@ const Home = ({ navigation, route }) => { return ( <> - {adventureStarted ? ( - - - - - {isWeb ? ( - <> - {/* + {/* {adventureStarted ? ( */} + + + + + {isWeb ? ( + <> + {/* {returnHomeButton} */} - - {topBar} - {journeyContent} - - - ) : ( - + {topBar} - - {journeyContent} - + {journeyContent} - )} - - - - ) : ( - <> - - - - - - - - )} + + ) : ( + + {topBar} + + {journeyContent} + + + )} + + + + {!isWeb ? (