diff --git a/web/src/components/admin/AdminPast.jsx b/web/src/components/admin/AdminPast.jsx index 673d7a8..c996a6e 100644 --- a/web/src/components/admin/AdminPast.jsx +++ b/web/src/components/admin/AdminPast.jsx @@ -6,7 +6,9 @@ import ImageSlot from '../ImageSlot.jsx'; // Manages the gallery of one past event: unlimited photos, add / delete / // set-as-principal. Only available once the event exists (has an id). -function PhotoManager({ eventId, photos, setPhotos }) { +// `refused` lists participants of the linked rencontre who declined image +// publication, warned about before photos are added. +function PhotoManager({ eventId, photos, setPhotos, refused = [] }) { const { user } = useAuth(); const [error, setError] = useState(''); @@ -46,6 +48,15 @@ function PhotoManager({ eventId, photos, setPhotos }) { return (
La première photo (★ principale) est mise en avant sur la page d'accueil. Le nombre de photos affiché sur le site correspond automatiquement aux photos ci-dessus.