Skip to content

Commit

Permalink
Update Hymne
Browse files Browse the repository at this point in the history
  • Loading branch information
ousamazemzami committed Dec 16, 2024
1 parent 15b77bb commit 3b045aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import Link from 'next/link';
import { useRouter } from 'next/router';
import React, { useEffect } from 'react';
Expand Down Expand Up @@ -59,8 +60,11 @@ export default function ActivityCard({
setAnchorEl(null);
};
const handleUpdate = () => {
console.log(activity);
if (activity.type === 5) {
router.push(`/admin/newportal/contenulibre/edit/1/${activity.id}`);
} else if (activity.type === 11) {
router.push(`/admin/newportal/create/parametrer-hymne/1?edit=true&activity-id=${activity.id}`);
}
setAnchorEl(null);
};
Expand Down
2 changes: 1 addition & 1 deletion src/pages/creer-un-jeu/objet/displayList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const DisplayList = () => {
const village = useContext(VillageContext);
return (
<Base>
<h1 style={{ display: 'flex', justifyContent: 'space-around', marginTop: 20, marginBottom: 50 }}>Voici la liste des jeux des objets !</h1>
<h1 style={{ display: 'flex', justifyContent: 'space-around', marginTop: 20, marginBottom: 50 }}>voici la liste des jeux de la monnaie !</h1>
<div style={{ maxWidth: 900, display: 'flex', margin: 'auto' }}>
<List subType={1} villageId={village.village?.id} />
</div>
Expand Down

0 comments on commit 3b045aa

Please sign in to comment.