Skip to content
Snippets Groups Projects
Commit 0e901df5 authored by Pavan Kamath's avatar Pavan Kamath
Browse files

Avatar Component

parent 6fc4924a
No related branches found
No related tags found
No related merge requests found
.Avatar {
img {
height: 120px;
width: 120px;
border: 3px solid #fff;
border-radius: 50%;
&:hover {
cursor: pointer;
transform: translate(0, 0) scale(1.03);
}
}
}
import React from "react";
import PropTypes from "prop-types";
import styles from "./Avatar.module.scss";
const Avatar = (props) => {
const { picture, alt, customClass } = props;
return (
<div className={styles.Avatar}>
<img src={picture} alt={alt} className={customClass} />
</div>
);
};
Avatar.propTypes = {
picture: PropTypes.string.isRequired,
alt: PropTypes.string.isRequired,
customClass: PropTypes.string,
};
export default Avatar;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment