|
@@ -1,9 +1,9 @@
|
|
|
import React, { FC, Fragment, useState } from 'react'
|
|
|
|
|
|
import { GetVideosConnectionDocument, GetVideosConnectionQuery, GetVideosConnectionQueryVariables } from '@/api/queries'
|
|
|
-import { ChannelPreview } from '@/components/ChannelPreview'
|
|
|
+import { ChannelCard } from '@/components/ChannelCard'
|
|
|
import { useInfiniteGrid } from '@/components/InfiniteGrids/useInfiniteGrid'
|
|
|
-import { VideoPreview } from '@/components/VideoPreview'
|
|
|
+import { VideoTile } from '@/components/VideoTile'
|
|
|
import { Grid } from '@/shared/components'
|
|
|
|
|
|
type ChannelWithVideosProps = {
|
|
@@ -39,14 +39,14 @@ export const ChannelWithVideos: FC<ChannelWithVideosProps> = ({ channelId }) =>
|
|
|
const gridContent = (
|
|
|
<>
|
|
|
{[...displayedItems, ...placeholderItems]?.map((video, idx) => (
|
|
|
- <VideoPreview id={video.id} key={`channels-with-videos-${idx}`} showChannel />
|
|
|
+ <VideoTile id={video.id} key={`channels-with-videos-${idx}`} showChannel />
|
|
|
))}
|
|
|
</>
|
|
|
)
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
- <ChannelPreview id={channelId} variant="secondary" />
|
|
|
+ <ChannelCard id={channelId} variant="secondary" />
|
|
|
<Grid onResize={(sizes) => setVideosPerRow(sizes.length)}>{gridContent}</Grid>
|
|
|
</>
|
|
|
)
|