From a58eeac0797f999222294d89288037de8aba78a7 Mon Sep 17 00:00:00 2001 From: leon-morival Date: Wed, 5 Nov 2025 11:37:16 +0100 Subject: [PATCH] fix: context --- src/screens/Production/DownloadSongs.js | 119 ++++++++++++------------ src/screens/Writing/Goals.js | 15 ++- 2 files changed, 64 insertions(+), 70 deletions(-) diff --git a/src/screens/Production/DownloadSongs.js b/src/screens/Production/DownloadSongs.js index 5505f3f..f284a2b 100644 --- a/src/screens/Production/DownloadSongs.js +++ b/src/screens/Production/DownloadSongs.js @@ -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 }) => { /> - Prêt à télécharger - {action === "playback" ? " ton Playback" : " ta chanson"} ? - - - - + + - - Télécharger{" "} - {action === "playback" ? "mon Playback" : "ma chanson"} - - Pour moi uniquement - - - - navigate(Routes.StreamSong, { - action, - }) - } - > - + + Télécharger{" "} + {action === "playback" ? "mon Playback" : "ma chanson"} + + Pour moi uniquement + + + + navigate(Routes.StreamSong, { + action, + }) + } > - - Diffuser{" "} - {action === "playback" ? "mon Playback" : "ma chanson"} sur - la plateforme de MusicLand (+ réseaux sociaux) et participer - au concours - - - 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"}) - - - + + + Diffuser{" "} + {action === "playback" ? "mon Playback" : "ma chanson"}{" "} + sur la plateforme de MusicLand (+ réseaux sociaux) et + participer au concours + + + 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"}) + + + + - - + {action === "playback" && ( diff --git a/src/screens/Writing/Goals.js b/src/screens/Writing/Goals.js index 895cfdf..4a0f235 100644 --- a/src/screens/Writing/Goals.js +++ b/src/screens/Writing/Goals.js @@ -11,8 +11,8 @@ import { BaseButton } from "../../components/Button"; import ItemContainer from "../../components/ItemContainer/ItemContainer"; import ListSelection from "../../components/ListSelection/ListSelection"; import Overlay from "../../components/Overlay"; -import { GOALS, OTHER_OBJECTIVE_OPTION } from "../../data/data"; import { strings } from "../../constants/strings"; +import { GOALS, OTHER_OBJECTIVE_OPTION } from "../../data/data"; import { Palette } from "../../styles"; import { FONT_FAMILY } from "../../styles/Fonts"; import CreateLyricsHeader from "./components/CreateLyricsHeader"; @@ -106,17 +106,14 @@ const Goals = ({ return ( <> - - - + + + {/* {strings.writing.steps.contextExamples} - - + */} +