photobooth funktionen im event admin verlinkt, gäste pwa zeigt photobooth nur noch an, wenn diese aktiviert ist. kontaktformular optimiert. teilen-link mit iMessage und whatsapp erweitert.

This commit is contained in:
Codex Agent
2025-11-23 22:22:06 +01:00
parent 3d9eaa1194
commit df414a31cd
32 changed files with 809 additions and 280 deletions

View File

@@ -279,7 +279,7 @@ const [canUpload, setCanUpload] = useState(true);
// Check upload limits
useEffect(() => {
if (!eventKey || !task) return;
if (!eventKey) return;
const checkLimits = async () => {
try {
@@ -326,7 +326,7 @@ const [canUpload, setCanUpload] = useState(true);
};
checkLimits();
}, [eventKey, task, t]);
}, [eventKey, t]);
const stopStream = useCallback(() => {
if (streamRef.current) {
@@ -542,19 +542,19 @@ const [canUpload, setCanUpload] = useState(true);
const navigateAfterUpload = useCallback(
(photoId: number | undefined) => {
if (!eventKey || !task) return;
if (!eventKey) return;
const params = new URLSearchParams();
params.set('uploaded', 'true');
if (task.id) params.set('task', String(task.id));
if (task?.id) params.set('task', String(task.id));
if (photoId) params.set('photo', String(photoId));
if (emotionSlug) params.set('emotion', emotionSlug);
navigate(`/e/${encodeURIComponent(eventKey)}/gallery?${params.toString()}`);
},
[emotionSlug, navigate, eventKey, task]
[emotionSlug, navigate, eventKey, task?.id]
);
const handleUsePhoto = useCallback(async () => {
if (!eventKey || !reviewPhoto || !task || !canUpload) return;
if (!eventKey || !reviewPhoto || !canUpload) return;
setMode('uploading');
setUploadProgress(2);
setUploadError(null);