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) => {
|
// previously had handleViewSlideshow but it was not used; removed to satisfy ESLint
|
||||||
navigate(`/slideshow/${groupId}`);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleViewGroup = (groupId) => {
|
const handleViewGroup = (groupId) => {
|
||||||
navigate(`/groups/${groupId}`);
|
navigate(`/groups/${groupId}`);
|
||||||
|
|
@ -60,18 +58,7 @@ function GroupsOverviewPage() {
|
||||||
const handleCreateNew = () => {
|
const handleCreateNew = () => {
|
||||||
navigate('/multi-upload');
|
navigate('/multi-upload');
|
||||||
};
|
};
|
||||||
|
// removed unused local helpers (formatDate, handleGoHome) to clear ESLint warnings
|
||||||
const handleGoHome = () => {
|
|
||||||
navigate('/');
|
|
||||||
};
|
|
||||||
|
|
||||||
const formatDate = (dateString) => {
|
|
||||||
return new Date(dateString).toLocaleDateString('de-DE', {
|
|
||||||
year: 'numeric',
|
|
||||||
month: 'short',
|
|
||||||
day: 'numeric'
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import { useParams, useNavigate } from 'react-router-dom';
|
import { useParams } from 'react-router-dom';
|
||||||
import { Button, Container } from '@mui/material';
|
import { Container } from '@mui/material';
|
||||||
import Navbar from '../ComponentUtils/Headers/Navbar';
|
import Navbar from '../ComponentUtils/Headers/Navbar';
|
||||||
import Footer from '../ComponentUtils/Footer';
|
import Footer from '../ComponentUtils/Footer';
|
||||||
import ImageGalleryCard from '../ComponentUtils/ImageGalleryCard';
|
import ImageGalleryCard from '../ComponentUtils/ImageGalleryCard';
|
||||||
|
|
@ -9,7 +9,6 @@ import ImageGallery from '../ComponentUtils/ImageGallery';
|
||||||
|
|
||||||
const PublicGroupImagesPage = () => {
|
const PublicGroupImagesPage = () => {
|
||||||
const { groupId } = useParams();
|
const { groupId } = useParams();
|
||||||
const navigate = useNavigate();
|
|
||||||
const [group, setGroup] = useState(null);
|
const [group, setGroup] = useState(null);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [error, setError] = useState(null);
|
const [error, setError] = useState(null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user