feat: fixes

This commit is contained in:
2026-01-12 16:22:53 +01:00
parent 11e632acff
commit 0af799bb4d
3 changed files with 8 additions and 24 deletions
+7 -7
View File
@@ -21,7 +21,7 @@ import GradientButton from '../../components/GradientButton'
import ValidateModal from '../../components/modal/ValidateModal'
import MusicLandHeader from '../../components/MusicLandHeader'
import ProgressSlider from '../../components/player/ProgressSlider'
import { isWeb } from '../../hooks/useLayoutType'
import { isDesktopWeb, isWeb } from '../../hooks/useLayoutType'
import Page from '../../layouts/Page'
import { Routes } from '../../navigation'
import { navigate, reset } from '../../navigation/NavigationService'
@@ -100,8 +100,8 @@ const SongReady = () => {
useEffect(() => {
const urls = Array.isArray(selectedProject?.musicUrls)
? selectedProject.musicUrls
.filter((url) => typeof url === 'string' && url.trim())
.map((url) => url.trim())
.filter((url) => typeof url === 'string' && url.trim())
.map((url) => url.trim())
: []
setMusicUrls(urls)
setSelectedIndex((prev) => {
@@ -164,7 +164,7 @@ const SongReady = () => {
if (isWeb) {
alert(
'Attention !',
'Lorsque tu clique sur valider, tu ne pourra plus changer ni le texte ni la mélodie.',
'Lorsque tu cliques sur valider, tu ne pourras plus changer ni le texte ni la mélodie.',
[
{
text: 'Retour',
@@ -189,7 +189,7 @@ const SongReady = () => {
setShowRegenerateModal(false)
try {
await pauseAllPlayers()
} catch {}
} catch { }
navigate(Routes.Lyrics)
}
@@ -262,7 +262,7 @@ const SongReady = () => {
onPressBack={async () => {
try {
await pauseAllPlayers()
} catch {}
} catch { }
navigate(Routes.Home)
}}
progress={63}
@@ -272,7 +272,7 @@ const SongReady = () => {
title="Ta chanson est prête !"
subTitle="Choisis ton morceau"
containerStyle={{
marginBottom: responsiveHeight(2),
marginBottom: !isDesktopWeb ? responsiveHeight(2) : responsiveHeight(22),
}}
/>
<FlatList