diff --git a/package-lock.json b/package-lock.json index 18d24220..13388b1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ "react-leaflet": "^4.2.1", "react-leaflet-cluster": "^2.1.0", "react-markdown": "^9.0.1", + "react-photo-album": "^3.0.2", "react-router-dom": "^6.16.0", "react-string-replace": "^1.1.1", "react-toastify": "^9.1.3", @@ -6043,6 +6044,23 @@ "react": ">=18" } }, + "node_modules/react-photo-album": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/react-photo-album/-/react-photo-album-3.0.2.tgz", + "integrity": "sha512-w3+8i6aj9l1jRfcubgVbAlBGSdtiXcqWdcwZcH4/Bavc+v7X7h+S3TkQ723pvDABjhaaxS168g9ECEBP6xnKrQ==", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/react": ">=18", + "react": ">=18" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, "node_modules/react-router": { "version": "6.16.0", "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.16.0.tgz", diff --git a/package.json b/package.json index ed9294b7..948a9548 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "react-leaflet": "^4.2.1", "react-leaflet-cluster": "^2.1.0", "react-markdown": "^9.0.1", + "react-photo-album": "^3.0.2", "react-router-dom": "^6.16.0", "react-string-replace": "^1.1.1", "react-toastify": "^9.1.3", diff --git a/src/Components/AppShell/NavBar.tsx b/src/Components/AppShell/NavBar.tsx index 0e627c1f..08971877 100644 --- a/src/Components/AppShell/NavBar.tsx +++ b/src/Components/AppShell/NavBar.tsx @@ -62,7 +62,7 @@ export default function NavBar({ appName, userType }: { appName: string; userTyp if (showNav) { return ( <> -
+
- - setOpen(false)} - slides={[{ src: '/image1.jpg' }, { src: '/image2.jpg' }, { src: '/image3.jpg' }]} +
+ setIndex(current)} /> - + + = 0} close={() => setIndex(-1)} /> +
) } diff --git a/src/Components/Profile/Templates/FlexView.tsx b/src/Components/Profile/Templates/FlexView.tsx index 1dea72d6..608b0fdf 100644 --- a/src/Components/Profile/Templates/FlexView.tsx +++ b/src/Components/Profile/Templates/FlexView.tsx @@ -3,6 +3,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-call */ import { ContactInfoView } from '#components/Profile/Subcomponents/ContactInfoView' +import { GalleryView } from '#components/Profile/Subcomponents/GalleryView' import { GroupSubHeaderView } from '#components/Profile/Subcomponents/GroupSubHeaderView' import { ProfileStartEndView } from '#components/Profile/Subcomponents/ProfileStartEndView' import { ProfileTextView } from '#components/Profile/Subcomponents/ProfileTextView' @@ -14,6 +15,7 @@ const componentMap = { texts: ProfileTextView, contactInfos: ContactInfoView, startEnd: ProfileStartEndView, + gallery: GalleryView, // weitere Komponenten hier }