This commit is contained in:
2025-10-03 17:11:06 +02:00
parent 74ebad850c
commit 45b7571c14
4 changed files with 21 additions and 21 deletions
+14 -14
View File
@@ -1,16 +1,16 @@
import { View, Text, Image, Platform, Alert } from "react-native";
import React, { useEffect, useRef, useState } from "react";
import { Palette, Style } from "../../styles";
import { BlurView } from "expo-blur";
import { ai } from "../../assets";
import ProgressBar from "../../components/ProgressBar";
import { FONT_FAMILY } from "../../styles/Fonts";
import GradientButton from "../../components/GradientButton";
import { navigate } from "../../navigation/NavigationService";
import { Routes } from "../../navigation";
import firebase from "../../config/firebase";
import React, { useEffect, useRef, useState } from "react";
import { Alert, Image, Platform, Text, View } from "react-native";
import useMinuit from "react-native-minuit/src/hooks/useMinuit.js";
import { ai } from "../../assets";
import GradientButton from "../../components/GradientButton";
import ProgressBar from "../../components/ProgressBar";
import firebase from "../../config/firebase";
import { Routes } from "../../navigation";
import { navigate } from "../../navigation/NavigationService";
import { useUser } from "../../providers/UserDataProvider";
import { Palette, Style } from "../../styles";
import { FONT_FAMILY } from "../../styles/Fonts";
const CreatingLyrics = ({ active, config, selections }) => {
const [progress, setProgress] = useState(0);
@@ -78,7 +78,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
const rawMessage = typeof e?.message === "string" ? e.message : "";
const cleanedMessage = rawMessage.replace(
/^functions error: \w+-\w+:\s*/i,
"",
""
);
setError({
message:
@@ -154,7 +154,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
onPress: redirect,
},
],
{ cancelable: false },
{ cancelable: false }
);
if (Platform.OS === "web") {
@@ -246,7 +246,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
setSaved(true);
await setIsLoading(true);
console.log(
"📄 [CreatingLyrics] Consultation manuelle du texte",
"📄 [CreatingLyrics] Consultation manuelle du texte"
);
await updateProjectData({
title: result?.title || "",
@@ -261,7 +261,7 @@ const CreatingLyrics = ({ active, config, selections }) => {
} catch (e) {
console.error(
"⚠️ [CreatingLyrics] Erreur lors de l'ouverture manuelle",
e,
e
);
} finally {
await setIsLoading(false);