|
@@ -11,8 +11,9 @@ const StyledVideoPreview = styled(VideoPreview)`
|
|
|
|
|
|
type VideoGridProps = {
|
|
type VideoGridProps = {
|
|
videos: VideoFields[]
|
|
videos: VideoFields[]
|
|
|
|
+ showChannel?: boolean
|
|
}
|
|
}
|
|
-const VideoGrid: React.FC<VideoGridProps> = ({ videos }) => {
|
|
|
|
|
|
+const VideoGrid: React.FC<VideoGridProps> = ({ videos, showChannel = true }) => {
|
|
return (
|
|
return (
|
|
<Grid>
|
|
<Grid>
|
|
{videos.map((v, idx) => (
|
|
{videos.map((v, idx) => (
|
|
@@ -27,6 +28,7 @@ const VideoGrid: React.FC<VideoGridProps> = ({ videos }) => {
|
|
duration={v.duration}
|
|
duration={v.duration}
|
|
views={v.views}
|
|
views={v.views}
|
|
posterURL={v.thumbnailURL}
|
|
posterURL={v.thumbnailURL}
|
|
|
|
+ showChannel={showChannel}
|
|
/>
|
|
/>
|
|
))}
|
|
))}
|
|
</Grid>
|
|
</Grid>
|