alert after paroles
This commit is contained in:
@@ -29,7 +29,7 @@ import {
|
||||
getStageAction,
|
||||
} from "../../utils/projectStages";
|
||||
|
||||
const Home = () => {
|
||||
const Home = ({ navigation, route }) => {
|
||||
const {
|
||||
userProjects = [],
|
||||
resetSelectedProject,
|
||||
@@ -216,6 +216,16 @@ const Home = () => {
|
||||
];
|
||||
}, [handleDeleteProject, menuProject?.id]);
|
||||
|
||||
useEffect(() => {
|
||||
if (route?.params?.showLyricsCongrats) {
|
||||
Alert(
|
||||
"Nathalie",
|
||||
"Bravo ! Vous venez de terminer de créer les paroles de votre musique ! Maintenant vous pouvez passer à la prochaine étape : le Studio avec Malik. Dans cette étape vous allez pouvoir donner vie à votre chanson !"
|
||||
);
|
||||
navigation?.setParams?.({ showLyricsCongrats: false });
|
||||
}
|
||||
}, [navigation, route?.params?.showLyricsCongrats]);
|
||||
|
||||
const activeStage =
|
||||
stageStates[activeStageIndex] || stageStates[preferredStageIndex];
|
||||
const stageAction = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user