feat: assets
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user