Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
059b67721f
1 muutettua tiedostoa jossa 3 lisäystä ja 5 poistoa
  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}
           />