refactor: Add explicit type for video map

- Improves type safety
- Enhances code readability
This commit is contained in:
Yusuf İpek
2026-02-07 17:05:16 +03:00
parent aa34004b7b
commit 98df611bf7
@@ -122,7 +122,7 @@ export default async function ProjectPage({ params }: ProjectPageProps) {
} }
// Transform videos for VideoCard component // Transform videos for VideoCard component
const videos = project.videos.map((video) => { const videos = project.videos.map((video: typeof project.videos[0]) => {
const activeVersion = video.versions[0]; const activeVersion = video.versions[0];
return { return {
id: video.id, id: video.id,