feat: assets

This commit is contained in:
2026-03-03 13:32:55 +01:00
parent e88ab1ed31
commit a09e21bd6b
8 changed files with 47 additions and 8 deletions
+10
View File
@@ -57,6 +57,7 @@ const ComposeSong = () => {
const [isConfirmVisible, setIsConfirmVisible] = useState(false)
const [isProcessingConfirmation, setIsProcessingConfirmation] = useState(false)
const isRegenerationFlow = route?.params?.isRegeneration === true
const fromLyrics = route?.params?.fromLyrics === true
const coinBalance = useMemo(() => {
const value = currentUserData?.coins
@@ -273,6 +274,15 @@ const ComposeSong = () => {
if (selectedIndex > 0) {
setSelectedIndex((prev) => Math.max(prev - 1, 0))
} else {
if (fromLyrics) {
navigate(Routes.BottomTab, {
screen: Routes.HomeStack,
params: {
screen: Routes.Home,
},
})
return
}
goBack()
}
}