fix(frontend): Fix syntax error and remove unused imports

- Fix extra closing brace in ModerationGroupsPage exportConsentData
- Remove unused adminRequest import from ModerationGroupImagesPage
- Remove unused ConsentBadges import from ModerationGroupsPage

 Build tested: npm run build successful (compiled with warnings)
This commit is contained in:
Matthias Lotz 2025-11-16 19:51:36 +01:00
parent 6effded8bf
commit 7af14a162d
3 changed files with 3 additions and 5 deletions

View File

@ -1,12 +1,12 @@
{ {
"name": "frontend", "name": "frontend",
"version": "0.1.0", "version": "1.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "frontend", "name": "frontend",
"version": "0.1.0", "version": "1.1.0",
"dependencies": { "dependencies": {
"@dnd-kit/core": "^6.3.1", "@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0", "@dnd-kit/sortable": "^10.0.0",

View File

@ -3,7 +3,7 @@ import { useParams, useNavigate } from 'react-router-dom';
import { Container, Box } from '@mui/material'; import { Container, Box } from '@mui/material';
// Services // Services
import { adminGet, adminRequest } from '../../services/adminApi'; import { adminGet } from '../../services/adminApi';
import { handleAdminError } from '../../services/adminErrorHandler'; import { handleAdminError } from '../../services/adminErrorHandler';
// Components // Components

View File

@ -14,7 +14,6 @@ import Navbar from '../ComponentUtils/Headers/Navbar';
import Footer from '../ComponentUtils/Footer'; import Footer from '../ComponentUtils/Footer';
import ImageGallery from '../ComponentUtils/ImageGallery'; import ImageGallery from '../ComponentUtils/ImageGallery';
import DeletionLogSection from '../ComponentUtils/DeletionLogSection'; import DeletionLogSection from '../ComponentUtils/DeletionLogSection';
import ConsentBadges from '../ComponentUtils/ConsentBadges';
import { getImageSrc } from '../../Utils/imageUtils'; import { getImageSrc } from '../../Utils/imageUtils';
const ModerationGroupsPage = () => { const ModerationGroupsPage = () => {
@ -189,7 +188,6 @@ const ModerationGroupsPage = () => {
}); });
} catch (error) { } catch (error) {
await handleAdminError(error, 'Consent-Export'); await handleAdminError(error, 'Consent-Export');
});
} }
}; };