continue fix generating flow
This commit is contained in:
@@ -10,6 +10,7 @@ import { navigate } from "../navigation/NavigationService";
|
||||
import { useUserData } from "../providers/UserDataProvider";
|
||||
import FontAwesome from "@expo/vector-icons/FontAwesome";
|
||||
import palette from "../styles/Palette";
|
||||
import GeneratingSong from "./Studio/GeneratingSong";
|
||||
|
||||
const CREATE_DATA = [
|
||||
{
|
||||
@@ -77,13 +78,19 @@ const NewMusicOptions = ({ route }) => {
|
||||
});
|
||||
break;
|
||||
case 1:
|
||||
navigate(Routes.Compose, { projectId: currentProjet.id });
|
||||
if (currentProjet?.musicStatus === "GENERATING") {
|
||||
navigate(Routes.GeneratingSong, { projectId: currentProjet.id });
|
||||
} else if (currentProjet?.musicStatus === "GENERATED") {
|
||||
navigate(Routes.SongReady, { projectId: currentProjet.id });
|
||||
} else {
|
||||
navigate(Routes.Compose, { projectId: currentProjet.id });
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
navigate(Routes.PouchReady, { projectId: currentProjet.id });
|
||||
break;
|
||||
default:
|
||||
navigate(Routes.PouchReady, { projectId: currentProjet.id });
|
||||
case 3:
|
||||
navigate(Routes.Playback, { projectId: currentProjet.id });
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user