diff --git a/src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials.tsx b/src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials.tsx index b51d3d18..c357f0c1 100644 --- a/src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials.tsx +++ b/src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials.tsx @@ -116,9 +116,18 @@ export function GroupContentMaterials() { } } -
- {material.title} + { + youTubeMatch !== null + ? +
{ const videoId = (youTubeMatch[1] ?? youTubeMatch[2]); if(!isMiniature || videoId!= playingVideo) handleVideoClick(videoId)}}> + {material.title} +
+ : + + {material.title} + + }

{material.description}

@@ -129,7 +138,7 @@ export function GroupContentMaterials() { const videoId = videoUrl[1] ?? videoUrl[2]; return ( -
{ console.log("videoId: " + videoId+"\n playing: " + playingVideo + "\nMiniature: "+isMiniature);if(!isMiniature || videoId != playingVideo) handleVideoClick(videoId)}}> +
{if(!isMiniature || videoId != playingVideo) handleVideoClick(videoId)}}> { playingVideo == videoId