-
diff --git a/apps/X/app/lib/auth.ts b/apps/X/app/lib/auth.ts
index e70cd25..bb14ac3 100644
--- a/apps/X/app/lib/auth.ts
+++ b/apps/X/app/lib/auth.ts
@@ -109,7 +109,7 @@ export const authOptions = {
console.log("This is username", existingUser.username);
return {
id: existingUser.id.toString(),
- usernname: existingUser.username,
+ username: existingUser.username,
email: existingUser.email,
name: existingUser.name,
};
diff --git a/apps/X/src/components/TopHeader.tsx b/apps/X/src/components/TopHeader.tsx
index 8363c72..4ffe690 100644
--- a/apps/X/src/components/TopHeader.tsx
+++ b/apps/X/src/components/TopHeader.tsx
@@ -15,7 +15,7 @@ export const TopHeader = () => {
return (
-
+
diff --git a/apps/X/src/components/ui/Profile/UserInfo.tsx b/apps/X/src/components/ui/Profile/UserInfo.tsx
index af43d58..011619c 100644
--- a/apps/X/src/components/ui/Profile/UserInfo.tsx
+++ b/apps/X/src/components/ui/Profile/UserInfo.tsx
@@ -14,6 +14,8 @@ interface UserDataProps {
location: string;
createdDate: string;
bio: string;
+ username: string;
+ biolink: string;
}
export const UserInfo = () => {
const { data: session } = useSession();
@@ -45,27 +47,25 @@ export const UserInfo = () => {
return (
-
-
-
+
-
+
- {session?.user?.name?.[0]}
+
-
+
{session?.user?.name}
@{session?.user?.username}
@@ -73,33 +73,37 @@ export const UserInfo = () => {
-
+
{" "}
- {userData?.[0]?.createdDate}
+ {userData?.[0]?.createdDate
+ ? new Date(userData[0].createdDate).toLocaleDateString("en-GB")
+ : "N/A"}
-
-
+
+
-
+
diff --git a/apps/X/src/components/ui/TopNavHome.tsx b/apps/X/src/components/ui/TopNavHome.tsx
index 301229c..a73caf4 100644
--- a/apps/X/src/components/ui/TopNavHome.tsx
+++ b/apps/X/src/components/ui/TopNavHome.tsx
@@ -3,7 +3,7 @@ export const TopHead = () => {
return (