chore(frontend): fix ESLint warnings - remove unused handlers/imports
This commit is contained in:
parent
a44a85be73
commit
bf115453f1
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user