From f786e307a4e9128227c9229054ebb6ecfbeb785a Mon Sep 17 00:00:00 2001 From: josetano2 Date: Fri, 23 Aug 2024 14:05:35 +0700 Subject: [PATCH] final fix --- src/ss_frontend/src/components/Navbar.jsx | 20 +++++++------------ src/ss_frontend/src/components/User.jsx | 3 ++- .../src/pages/ProfileDetailPage.jsx | 16 +++++++++++++-- src/ss_frontend/src/pages/UsersPage.jsx | 1 - 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/src/ss_frontend/src/components/Navbar.jsx b/src/ss_frontend/src/components/Navbar.jsx index 5d2284e..5316d58 100644 --- a/src/ss_frontend/src/components/Navbar.jsx +++ b/src/ss_frontend/src/components/Navbar.jsx @@ -77,19 +77,13 @@ const Navbar = () => {
-
-
- - - -
+
+ + +
diff --git a/src/ss_frontend/src/components/User.jsx b/src/ss_frontend/src/components/User.jsx index 4d6c10c..eca84ab 100644 --- a/src/ss_frontend/src/components/User.jsx +++ b/src/ss_frontend/src/components/User.jsx @@ -1,10 +1,11 @@ import React from "react"; +import profilePlaceholder from "../assets/profilePlaceholder.jpg"; const User = ({ name, username, profileUrl, description }) => { return (
{`${name}'s diff --git a/src/ss_frontend/src/pages/ProfileDetailPage.jsx b/src/ss_frontend/src/pages/ProfileDetailPage.jsx index 00dc82b..e07fcd0 100644 --- a/src/ss_frontend/src/pages/ProfileDetailPage.jsx +++ b/src/ss_frontend/src/pages/ProfileDetailPage.jsx @@ -47,13 +47,25 @@ export default function ProfileDetailPage() { )}
-
+
{/* {isAuthenticated} */} {isAuthenticated ? ( <>
{name}

{"@" + username}

- +
+ {data && data.ok && data.ok.username === "" && ( + + )} + +
) : ( (