diff --git a/src/app/CustomerDashboard/MyProfile/page.tsx b/src/app/CustomerDashboard/MyProfile/page.tsx index 690f351..a7183e1 100644 --- a/src/app/CustomerDashboard/MyProfile/page.tsx +++ b/src/app/CustomerDashboard/MyProfile/page.tsx @@ -1,21 +1,27 @@ "use client"; import { useEffect, useState } from "react"; + import CustomerDashboardBox from "../../../Components/CustomerDashboardBox"; + import { User } from "@/types.index"; + import { Button } from "@mui/material"; -import Link from "next/link"; +import Link from "next/link"; const page = () => { const [userData, setUserData] = useState({}); useEffect(() => { const UserFromLocalStorage = localStorage.getItem("User"); - const user = JSON.parse(UserFromLocalStorage) + + const user = JSON.parse(UserFromLocalStorage); + console.log(user); - setUserData(user) - }, []) + + setUserData(user); + }, []); const displayedUserData = Object.fromEntries( Object.entries(userData).filter( @@ -44,6 +50,7 @@ const page = () => { + diff --git a/src/app/globals.css b/src/app/globals.css index a90f074..31cea65 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -2,3 +2,8 @@ @tailwind components; @tailwind utilities; +html, +body { + margin: 0; + padding: 0; +} \ No newline at end of file diff --git a/src/components/CustomerDashboardBox.tsx b/src/components/CustomerDashboardBox.tsx index 788881a..5c95019 100644 --- a/src/components/CustomerDashboardBox.tsx +++ b/src/components/CustomerDashboardBox.tsx @@ -11,18 +11,18 @@ const page = () => { const userObject: User = JSON.parse(user); const pathname = usePathname(); - const activePathClassName = "text-gray-950 font-medium"; + const activePathClassName = "text-gray-950 font-medium bg-theme2 "; return ( <> -