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

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>