Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions src/components/TutorialPage/components/UserDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useFirebase, useFirestore } from "react-redux-firebase";
import { getUserProfileData } from "../../../store/actions";
import { isUserFollower } from "../../../store/actions/profileActions";
import { addUserFollower } from "../../../store/actions";
import { Link } from "react-router-dom";

const useStyles = makeStyles(() => ({
container: {
Expand Down Expand Up @@ -78,20 +79,23 @@ const User = ({ id, timestamp, size }) => {
xs={6}
>
<Grid sx={{ height: "100%", width: "auto" }} item>
<Avatar
sx={{
height: size == "sm" ? "24px" : "40px",
width: size == "sm" ? "24px" : "40px"
}}
>
{user?.photoURL && user?.photoURL.length > 0 ? (
<img src={user?.photoURL} />
) : (
user?.displayName[0]
)}
</Avatar>
<Link to={`/profile/${user.uid}`}>
<Avatar
sx={{
height: size == "sm" ? "24px" : "40px",
width: size == "sm" ? "24px" : "40px"
}}
>
{user?.photoURL && user?.photoURL.length > 0 ? (
<img src={user?.photoURL} />
) : (
user?.displayName[0]
)}
</Avatar>
</Link>
</Grid>
<Grid item sx={{ width: "fit-content" }}>
<Link to={`/profile/${user.uid}`}>
<Typography
sx={{
fontSize: size == "sm" ? "14px" : "16px"
Expand All @@ -101,6 +105,7 @@ const User = ({ id, timestamp, size }) => {
{user?.displayName}
</span>
</Typography>
</Link>
<Typography
sx={{
fontSize: size == "sm" ? "10px" : "12px",
Expand Down