Przeglądaj źródła

Hide Show more videos header when there is no more videos on channel (#1263)

* Hide Show more videos header when there is no more videos on channel

* PR FIX
Rafał Pawłow 3 lat temu
rodzic
commit
059b67721f
1 zmienionych plików z 3 dodań i 5 usunięć
  1. 3 5
      src/views/viewer/VideoView/VideoView.tsx

+ 3 - 5
src/views/viewer/VideoView/VideoView.tsx

@@ -27,7 +27,6 @@ import {
   LicenseContainer,
   Meta,
   MoreVideosContainer,
-  MoreVideosHeader,
   NotFoundVideoContainer,
   PlayerContainer,
   PlayerSkeletonLoader,
@@ -196,12 +195,11 @@ export const VideoView: React.FC = () => {
           )}
         </LicenseContainer>
         <MoreVideosContainer>
-          <MoreVideosHeader>
-            {video ? `More from ${video.channel.title}` : <SkeletonLoader height={23} width={300} />}
-          </MoreVideosHeader>
           <InfiniteVideoGrid
+            title={`More from ${video?.channel.title}`}
+            titleLoader
             ready={!loading}
-            channelId={video?.channel.id}
+            channelId={channelId}
             showChannel={false}
             currentlyWatchedVideoId={video?.id}
           />