fix: context

This commit is contained in:
2025-11-05 11:37:16 +01:00
parent 49b54418b2
commit a58eeac079
2 changed files with 64 additions and 70 deletions
+58 -61
View File
@@ -11,8 +11,8 @@ import {
import useMinuit from "react-native-minuit/src/hooks/useMinuit.js";
import { responsiveHeight } from "react-native-responsive-dimensions";
import { background } from "../../assets";
import MusicLandHeader from "../../components/MusicLandHeader";
import FullscreenIntroVideo from "../../components/FullscreenIntroVideo";
import MusicLandHeader from "../../components/MusicLandHeader";
import firebase, {
projectsRef,
serverTimestamp,
@@ -86,10 +86,7 @@ const DownloadSongs = ({ route }) => {
const afterPlaybackUrl = useMemo(() => {
if (!video) return null;
if (Platform.OS === "web") {
return video?.afterPlaybackWeb || video?.afterPlayback || null;
}
return video?.afterPlayback || video?.afterPlaybackMobile || null;
return video?.afterPlayback;
}, [video]);
useEffect(() => {
@@ -229,65 +226,65 @@ const DownloadSongs = ({ route }) => {
/>
<View style={{ gap: 12, paddingVertical: 12 }}>
<Text style={styles.title}>
Prêt à télécharger
{action === "playback" ? " ton Playback" : " ta chanson"} ?
</Text>
<View style={{ gap: 10 }}>
<Pressable
style={styles.itemContainer}
onPress={handleDownloadUri}
// navigate(Routes.DownloadPrices, {
// action,
// uri,
// })
>
<BlurView
style={styles.blurView}
intensity={Platform.OS !== "ios" ? 10 : 40}
tint="dark"
// experimentalBlurMethod={
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
// }
Prêt à télécharger
{action === "playback" ? " ton Playback" : " ta chanson"} ?
</Text>
<View style={{ gap: 10 }}>
<Pressable
style={styles.itemContainer}
onPress={handleDownloadUri}
// navigate(Routes.DownloadPrices, {
// action,
// uri,
// })
>
<Text style={styles.label}>
Télécharger{" "}
{action === "playback" ? "mon Playback" : "ma chanson"}
</Text>
<Text style={styles.description}>Pour moi uniquement</Text>
</BlurView>
</Pressable>
<Pressable
style={styles.itemContainer}
onPress={() =>
navigate(Routes.StreamSong, {
action,
})
}
>
<BlurView
style={styles.blurView}
intensity={Platform.OS !== "ios" ? 10 : 40}
tint="dark"
// experimentalBlurMethod={
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
// }
<BlurView
style={styles.blurView}
intensity={Platform.OS !== "ios" ? 10 : 40}
tint="dark"
// experimentalBlurMethod={
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
// }
>
<Text style={styles.label}>
Télécharger{" "}
{action === "playback" ? "mon Playback" : "ma chanson"}
</Text>
<Text style={styles.description}>Pour moi uniquement</Text>
</BlurView>
</Pressable>
<Pressable
style={styles.itemContainer}
onPress={() =>
navigate(Routes.StreamSong, {
action,
})
}
>
<Text style={styles.label}>
Diffuser{" "}
{action === "playback" ? "mon Playback" : "ma chanson"} sur
la plateforme de MusicLand (+ réseaux sociaux) et participer
au concours
</Text>
<Text style={styles.description}>
Top 3: 1er 15% du CA ML - 2ème 10% du CA ML - 3ème 5% du CA
ML (catégorie{" "}
{action === "playback" ? "Playback" : "chanson"})
</Text>
</BlurView>
</Pressable>
<BlurView
style={styles.blurView}
intensity={Platform.OS !== "ios" ? 10 : 40}
tint="dark"
// experimentalBlurMethod={
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
// }
>
<Text style={styles.label}>
Diffuser{" "}
{action === "playback" ? "mon Playback" : "ma chanson"}{" "}
sur la plateforme de MusicLand (+ réseaux sociaux) et
participer au concours
</Text>
<Text style={styles.description}>
Top 3: 1er 15% du CA ML - 2ème 10% du CA ML - 3ème 5% du
CA ML (catégorie{" "}
{action === "playback" ? "Playback" : "chanson"})
</Text>
</BlurView>
</Pressable>
</View>
</View>
</View>
</CreateLyricsHeader>
</CreateLyricsHeader>
</View>
</Page>
{action === "playback" && (