fix: context
This commit is contained in:
@@ -11,8 +11,8 @@ import {
|
|||||||
import useMinuit from "react-native-minuit/src/hooks/useMinuit.js";
|
import useMinuit from "react-native-minuit/src/hooks/useMinuit.js";
|
||||||
import { responsiveHeight } from "react-native-responsive-dimensions";
|
import { responsiveHeight } from "react-native-responsive-dimensions";
|
||||||
import { background } from "../../assets";
|
import { background } from "../../assets";
|
||||||
import MusicLandHeader from "../../components/MusicLandHeader";
|
|
||||||
import FullscreenIntroVideo from "../../components/FullscreenIntroVideo";
|
import FullscreenIntroVideo from "../../components/FullscreenIntroVideo";
|
||||||
|
import MusicLandHeader from "../../components/MusicLandHeader";
|
||||||
import firebase, {
|
import firebase, {
|
||||||
projectsRef,
|
projectsRef,
|
||||||
serverTimestamp,
|
serverTimestamp,
|
||||||
@@ -86,10 +86,7 @@ const DownloadSongs = ({ route }) => {
|
|||||||
|
|
||||||
const afterPlaybackUrl = useMemo(() => {
|
const afterPlaybackUrl = useMemo(() => {
|
||||||
if (!video) return null;
|
if (!video) return null;
|
||||||
if (Platform.OS === "web") {
|
return video?.afterPlayback;
|
||||||
return video?.afterPlaybackWeb || video?.afterPlayback || null;
|
|
||||||
}
|
|
||||||
return video?.afterPlayback || video?.afterPlaybackMobile || null;
|
|
||||||
}, [video]);
|
}, [video]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -274,13 +271,13 @@ const DownloadSongs = ({ route }) => {
|
|||||||
>
|
>
|
||||||
<Text style={styles.label}>
|
<Text style={styles.label}>
|
||||||
Diffuser{" "}
|
Diffuser{" "}
|
||||||
{action === "playback" ? "mon Playback" : "ma chanson"} sur
|
{action === "playback" ? "mon Playback" : "ma chanson"}{" "}
|
||||||
la plateforme de MusicLand (+ réseaux sociaux) et participer
|
sur la plateforme de MusicLand (+ réseaux sociaux) et
|
||||||
au concours
|
participer au concours
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={styles.description}>
|
<Text style={styles.description}>
|
||||||
Top 3: 1er 15% du CA ML - 2ème 10% du CA ML - 3ème 5% du CA
|
Top 3: 1er 15% du CA ML - 2ème 10% du CA ML - 3ème 5% du
|
||||||
ML (catégorie{" "}
|
CA ML (catégorie{" "}
|
||||||
{action === "playback" ? "Playback" : "chanson"})
|
{action === "playback" ? "Playback" : "chanson"})
|
||||||
</Text>
|
</Text>
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import { BaseButton } from "../../components/Button";
|
|||||||
import ItemContainer from "../../components/ItemContainer/ItemContainer";
|
import ItemContainer from "../../components/ItemContainer/ItemContainer";
|
||||||
import ListSelection from "../../components/ListSelection/ListSelection";
|
import ListSelection from "../../components/ListSelection/ListSelection";
|
||||||
import Overlay from "../../components/Overlay";
|
import Overlay from "../../components/Overlay";
|
||||||
import { GOALS, OTHER_OBJECTIVE_OPTION } from "../../data/data";
|
|
||||||
import { strings } from "../../constants/strings";
|
import { strings } from "../../constants/strings";
|
||||||
|
import { GOALS, OTHER_OBJECTIVE_OPTION } from "../../data/data";
|
||||||
import { Palette } from "../../styles";
|
import { Palette } from "../../styles";
|
||||||
import { FONT_FAMILY } from "../../styles/Fonts";
|
import { FONT_FAMILY } from "../../styles/Fonts";
|
||||||
import CreateLyricsHeader from "./components/CreateLyricsHeader";
|
import CreateLyricsHeader from "./components/CreateLyricsHeader";
|
||||||
@@ -106,17 +106,14 @@ const Goals = ({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ScrollView contentContainerStyle={{ flex: 1, gap: 16, marginTop: 16 }}>
|
<ScrollView contentContainerStyle={{ flex: 1, gap: 16, marginTop: 16 }}>
|
||||||
<View style={{ gap: 10 }}>
|
<View style={{ gap: 10, height: "100%" }}>
|
||||||
<CreateLyricsHeader
|
<CreateLyricsHeader title={strings.writing.steps.contextTitle} />
|
||||||
title={strings.writing.steps.contextTitle}
|
{/* <View style={styles.examplesContainer}>
|
||||||
subTitle={strings.writing.steps.contextSubtitle}
|
|
||||||
/>
|
|
||||||
<View style={styles.examplesContainer}>
|
|
||||||
<Text style={styles.examplesText}>
|
<Text style={styles.examplesText}>
|
||||||
{strings.writing.steps.contextExamples}
|
{strings.writing.steps.contextExamples}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View> */}
|
||||||
<ItemContainer>
|
<ItemContainer height={"80%"}>
|
||||||
<ListSelection
|
<ListSelection
|
||||||
options={goalsOptions}
|
options={goalsOptions}
|
||||||
variant="simple"
|
variant="simple"
|
||||||
|
|||||||
Reference in New Issue
Block a user