Browse Source

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 years ago
parent
commit
059b67721f
1 changed files with 3 additions and 5 deletions
  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}
           />