diff --git a/src/app/library/[id]/page.tsx b/src/app/library/[id]/page.tsx
index 3ae6ffa..3ba1d1c 100644
--- a/src/app/library/[id]/page.tsx
+++ b/src/app/library/[id]/page.tsx
@@ -30,23 +30,30 @@ export default async function LibraryPage({ params, searchParams }: Props) {
return (
-
-
- Libraries
-
-
/
-
- {library.name}
-
- {session.role === 'admin' && (
-
-
-
- )}
-
+ {library.type !== 'mixed' && (
+
+
+ Libraries
+
+
/
+
+ {library.name}
+
+ {session.role === 'admin' && (
+
+
+
+ )}
+
+ )}
+ {library.type === 'mixed' && session.role === 'admin' && (
+
+
+
+ )}
{library.type === 'games' &&
}
- {library.type === 'mixed' &&
}
+ {library.type === 'mixed' &&
}
{library.type === 'movies' &&
}
{library.type === 'tv' &&
}
diff --git a/src/components/games/GameDetailModal.tsx b/src/components/games/GameDetailModal.tsx
index 1c582ae..0dbafd7 100644
--- a/src/components/games/GameDetailModal.tsx
+++ b/src/components/games/GameDetailModal.tsx
@@ -30,12 +30,14 @@ interface Props {
game: Game
libraryId: string
onClose: () => void
+ onPrev?: () => void
+ onNext?: () => void
onTagsChanged?: () => void
onCoverUploaded?: () => void
onDeleted?: (gameId: string) => void
}
-export default function GameDetailModal({ game, libraryId, onClose, onTagsChanged, onCoverUploaded, onDeleted }: Props) {
+export default function GameDetailModal({ game, libraryId, onClose, onPrev, onNext, onTagsChanged, onCoverUploaded, onDeleted }: Props) {
const overlayRef = useRef