upgrade/deps-react-node-20251028 #2

Merged
matthias.lotz merged 15 commits from upgrade/deps-react-node-20251028 into main 2025-10-29 23:22:31 +01:00
2 changed files with 4 additions and 18 deletions
Showing only changes of commit bf115453f1 - Show all commits

View File

@ -49,9 +49,7 @@ function GroupsOverviewPage() {
}
};
const handleViewSlideshow = (groupId) => {
navigate(`/slideshow/${groupId}`);
};
// previously had handleViewSlideshow but it was not used; removed to satisfy ESLint
const handleViewGroup = (groupId) => {
navigate(`/groups/${groupId}`);
@ -60,18 +58,7 @@ function GroupsOverviewPage() {
const handleCreateNew = () => {
navigate('/multi-upload');
};
const handleGoHome = () => {
navigate('/');
};
const formatDate = (dateString) => {
return new Date(dateString).toLocaleDateString('de-DE', {
year: 'numeric',
month: 'short',
day: 'numeric'
});
};
// removed unused local helpers (formatDate, handleGoHome) to clear ESLint warnings
if (loading) {
return (

View File

@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { useParams, useNavigate } from 'react-router-dom';
import { Button, Container } from '@mui/material';
import { useParams } from 'react-router-dom';
import { Container } from '@mui/material';
import Navbar from '../ComponentUtils/Headers/Navbar';
import Footer from '../ComponentUtils/Footer';
import ImageGalleryCard from '../ComponentUtils/ImageGalleryCard';
@ -9,7 +9,6 @@ import ImageGallery from '../ComponentUtils/ImageGallery';
const PublicGroupImagesPage = () => {
const { groupId } = useParams();
const navigate = useNavigate();
const [group, setGroup] = useState(null);
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);