Преглед изворни кода

Add Default Channel Avatar

Francesco Baccetti пре 4 година
родитељ
комит
7c2536eeff
2 измењених фајлова са 5 додато и 1 уклоњено
  1. 4 0
      src/views/ChannelView/ChannelView.style.tsx
  2. 1 1
      src/views/ChannelView/ChannelView.tsx

+ 4 - 0
src/views/ChannelView/ChannelView.style.tsx

@@ -38,4 +38,8 @@ export const StyledAvatar = styled(Avatar)`
   width: 136px;
   height: 136px;
   margin-right: ${theme.sizes.b6}px;
+
+  > span {
+    font-size: ${theme.typography.sizes.h2};
+  }
 `

+ 1 - 1
src/views/ChannelView/ChannelView.tsx

@@ -23,7 +23,7 @@ const ChannelView: React.FC<RouteComponentProps> = () => {
     <div>
       <Header coverPhotoURL={data.channel.coverPhotoURL}>
         <TitleSection>
-          <StyledAvatar img={data.channel.avatarPhotoURL} />
+          <StyledAvatar img={data.channel.avatarPhotoURL} name={data.channel.handle} />
           <Title>{data.channel.handle}</Title>
         </TitleSection>
       </Header>