Skip to content

Commit

Permalink
fix: user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
SySagar committed Feb 26, 2024
1 parent 80a07e9 commit 5326cd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/profile/[profile].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function UserProfile() {
setUser({
username: res.data.username,
name: res.data.name,
avatar: import.meta.env.VITE_BASE_URL + "/media/" + res.data.avatar,
avatar: res.data.avatar,
graduationYear: res.data.graduation_year,
linkedin_handle: res.data.linkedin_url,
twitter_handle: res.data.twitter_username,
Expand All @@ -50,7 +50,7 @@ export default function UserProfile() {
<Stack justifyContent="center" alignItems="center">
<Stack
border={3}
boxShadow="0 0 10px 3px"
boxShadow="0 0 5px 1px"
direction="row"
minWidth="900px"
padding={12}
Expand Down
1 change: 1 addition & 0 deletions src/app/team/components/AllTeams.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default function AllTeam() {
key={idx}
memberName={member.profile.name}
memberImage={member.profile.avatar}
memberUsername={member.profile.username}
/>
))}
</Stack>
Expand Down
4 changes: 2 additions & 2 deletions src/app/team/components/MemberCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import AndroidIcon from "@mui/icons-material/Android";
import SmartToyIcon from "@mui/icons-material/SmartToy";
import OpenInNewIcon from "@mui/icons-material/OpenInNew";

export default function MemberCard({ memberImage, memberName }) {
export default function MemberCard({ memberImage, memberName, memberUsername }) {
const profileRedirect = () => {
const newPageUrl = "/profile/" + memberName;
const newPageUrl = "/profile/" + memberUsername;
window.open(newPageUrl, "_blank");
};

Expand Down

0 comments on commit 5326cd2

Please sign in to comment.