diff --git a/src/app/(dashboard)/profile/page.tsx b/src/app/(dashboard)/profile/page.tsx index f7522fe..682cee2 100644 --- a/src/app/(dashboard)/profile/page.tsx +++ b/src/app/(dashboard)/profile/page.tsx @@ -9,32 +9,33 @@ import { Tabs, TabsContent, TabsList, - TabsTrigger, + TabsTrigger } from "@/src/components/ui/tabs" import { CalendarIcon, StarIcon, TrophyIcon, UserIcon } from "lucide-react" import { useSearchParams } from "next/navigation" import { useEffect, useState } from "react" import { Recommendation } from "@/src/components/dashboard/profile/types/profile-types" +import { useUser } from "@clerk/nextjs" const rewards = [ { title: "Top Contributor", - description: "Awarded for outstanding contributions to the team", + description: "Awarded for outstanding contributions to the team" }, { title: "Innovation Champion", - description: "Recognized for implementing creative solutions", - }, + description: "Recognized for implementing creative solutions" + } ] const activities = [ { date: "2023-04-01", - description: "Completed the 'Advanced React Patterns' course", + description: "Completed the 'Advanced React Patterns' course" }, { date: "2023-03-15", - description: "Contributed to open-source project 'awesome-ui-components'", - }, + description: "Contributed to open-source project 'awesome-ui-components'" + } ] export default function ProfileScreen() { @@ -44,22 +45,23 @@ export default function ProfileScreen() { "Web Development", "AI", "Open Source", - "Tech Writing", + "Tech Writing" ]) const [interests, setInterests] = useState([ "React", "Next.js", "TypeScript", "UI/UX", - "Node.js", + "Node.js" ]) const [recommendations, setRecommendations] = useState([ { name: "Jane Doe", - text: "An exceptional developer with a keen eye for detail.", + text: "An exceptional developer with a keen eye for detail." }, - { name: "John Smith", text: "Always delivers high-quality work on time." }, + { name: "John Smith", text: "Always delivers high-quality work on time." } ]) + const { user } = useUser() useEffect(() => { const tab = searchParams.get("tab") @@ -72,12 +74,14 @@ export default function ProfileScreen() {
- + JD
-

Jane Developer

-

Senior Frontend Engineer

+

{user?.fullName}

+

+ {user?.emailAddresses[0].emailAddress} +