Home page and navigate to login/register page if not logged in

This commit is contained in:
Andrew Trieu
2023-07-18 21:43:53 +03:00
parent bab2bfad0b
commit 94232b24d9
6 changed files with 201 additions and 5 deletions

View 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;