Преглед на файлове

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 години
родител
ревизия
059b67721f
променени са 1 файла, в които са добавени 3 реда и са изтрити 5 реда
  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}
           />