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
+7 -10
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(() => {
@@ -274,13 +271,13 @@ const DownloadSongs = ({ route }) => {
>
<Text style={styles.label}>
Diffuser{" "}
{action === "playback" ? "mon Playback" : "ma chanson"} sur
la plateforme de MusicLand (+ réseaux sociaux) et participer
au concours
{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{" "}
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>
+6 -9
View File
@@ -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 (
<>
<ScrollView contentContainerStyle={{ flex: 1, gap: 16, marginTop: 16 }}>
<View style={{ gap: 10 }}>
<CreateLyricsHeader
title={strings.writing.steps.contextTitle}
subTitle={strings.writing.steps.contextSubtitle}
/>
<View style={styles.examplesContainer}>
<View style={{ gap: 10, height: "100%" }}>
<CreateLyricsHeader title={strings.writing.steps.contextTitle} />
{/* <View style={styles.examplesContainer}>
<Text style={styles.examplesText}>
{strings.writing.steps.contextExamples}
</Text>
</View>
<ItemContainer>
</View> */}
<ItemContainer height={"80%"}>
<ListSelection
options={goalsOptions}
variant="simple"