feat: fix video url

This commit is contained in:
2025-12-08 16:05:10 +01:00
parent 23eded7513
commit 9c2087c574
2 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -395,7 +395,8 @@ const Home = ({ navigation, route }) => {
const handleStartVisit = useCallback(() => { const handleStartVisit = useCallback(() => {
setVideoUrl(isWeb ? videos?.landingWeb : videos?.landing); setVideoUrl(isWeb ? videos?.landingWeb : videos?.landing);
}, []); }, []);
console.log("is web ? : ", isWeb);
console.log("landing video url is : ", videoUrl);
const handleReturnToLanding = useCallback(() => { const handleReturnToLanding = useCallback(() => {
navigate(Routes.LandingPage); navigate(Routes.LandingPage);
}, []); }, []);
@@ -62,7 +62,7 @@ const ClubAdvantagesCard = ({ style, isDev = false }) => {
style, style,
]} ]}
> >
{isDev ? ( {/* {isDev ? (
<View style={styles.testSwitches}> <View style={styles.testSwitches}>
<View style={styles.switchRow}> <View style={styles.switchRow}>
<Text style={styles.switchLabel}>Test layout web</Text> <Text style={styles.switchLabel}>Test layout web</Text>
@@ -77,7 +77,7 @@ const ClubAdvantagesCard = ({ style, isDev = false }) => {
/> />
</View> </View>
</View> </View>
) : null} ) : null} */}
<View style={styles.header}> <View style={styles.header}>
<View style={styles.titleBlock}> <View style={styles.titleBlock}>
@@ -147,6 +147,8 @@ const ClubAdvantagesCard = ({ style, isDev = false }) => {
style={[ style={[
styles.advantageContent, styles.advantageContent,
useWebLayout && styles.advantageContentWeb, useWebLayout && styles.advantageContentWeb,
hasActiveSubscription &&
!useWebLayout && { paddingRight: 10 },
]} ]}
> >
<Text <Text
@@ -204,7 +206,7 @@ const styles = StyleSheet.create({
}, },
testSwitches: { testSwitches: {
gap: gutters * 0.75, gap: gutters * 0.75,
backgroundColor: "rgba(255, 255, 255, 0.08)", // backgroundColor: "rgba(255, 255, 255, 0.08)",
padding: gutters * 0.9, padding: gutters * 0.9,
borderRadius: 14, borderRadius: 14,
borderWidth: 1, borderWidth: 1,