Home page and navigate to login/register page if not logged in
This commit is contained in:
20
client/src/components/ProfilePhoto.jsx
Normal file
20
client/src/components/ProfilePhoto.jsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Box } from "@mui/material";
|
||||
|
||||
const ProfilePhoto = ({ image, size = "60px" }) => {
|
||||
return (
|
||||
<Box width={size} height={size}>
|
||||
<img
|
||||
style={{
|
||||
objectFit: "cover",
|
||||
borderRadius: "50%",
|
||||
}}
|
||||
width={size}
|
||||
height={size}
|
||||
alt="profile"
|
||||
src={`http://localhost:3001/assets/${image}`}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default ProfilePhoto;
|
||||
Reference in New Issue
Block a user