소스 검색

Add all content section to home view (#1030)

Rafał Pawłow 3 년 전
부모
커밋
ccca11dd31
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/views/viewer/HomeView.tsx

+ 6 - 1
src/views/viewer/HomeView.tsx

@@ -10,7 +10,7 @@ import {
   ViewErrorFallback,
 } from '@/components'
 import { usePersonalDataStore } from '@/providers'
-import { transitions } from '@/shared/theme'
+import { sizes, transitions } from '@/shared/theme'
 import { SentryLogger } from '@/utils/logs'
 
 export const HomeView: React.FC = () => {
@@ -42,6 +42,7 @@ export const HomeView: React.FC = () => {
           <StyledInfiniteVideoGrid title="Followed channels" channelIdIn={channelIdIn} ready={!loading} onDemand />
         ) : null}
         <OfficialJoystreamUpdate />
+        <StyledInfiniteVideoGrid title="All content" onDemand />
       </Container>
     </LimitedWidthContainer>
   )
@@ -58,4 +59,8 @@ const Container = styled.div`
 const StyledInfiniteVideoGrid = styled(InfiniteVideoGrid)`
   margin: 0;
   padding-bottom: 4rem;
+
+  :not(:first-of-type) {
+    margin-top: ${sizes(36)};
+  }
 `