sdy

update ProfileIcon component

1 import React from "react"; 1 import React from "react";
2 import styled from "styled-components"; 2 import styled from "styled-components";
3 -import defaultProfile from "../imgs/defaultProfile.jpg";
4 3
5 const ProfileIconBox = styled.div` 4 const ProfileIconBox = styled.div`
6 display: flex; 5 display: flex;
...@@ -15,10 +14,10 @@ const ProfileIcon = styled.img` ...@@ -15,10 +14,10 @@ const ProfileIcon = styled.img`
15 src: ${(props) => props.theme.defaultProfile}; 14 src: ${(props) => props.theme.defaultProfile};
16 `; 15 `;
17 16
18 -export default () => { 17 +export default ({ avatar }) => {
19 return ( 18 return (
20 - <ProfileIconBox> 19 + <ProfileIconBox className="ProfileIconBox">
21 - <ProfileIcon src={defaultProfile} /> 20 + <ProfileIcon src={avatar} />
22 </ProfileIconBox> 21 </ProfileIconBox>
23 ); 22 );
24 }; 23 };
......