Last active
June 22, 2018 09:07
-
-
Save diegohaz/da6a89089b44cb4f6cab4bccb5f17611 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Avatar = ({ className, style, ...props }) => ( | |
<img | |
className={`avatar ${className}`} | |
style={{ borderRadius: "50%", ...style }} | |
{...props} | |
/> | |
); | |
Avatar.propTypes = { | |
src: PropTypes.string.isRequired, | |
alt: PropTypes.string.isRequired, | |
className: PropTypes.string, | |
style: PropTypes.object | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment