From e69a9cdf8057ab556d2b3bb7729dc045321f8f20 Mon Sep 17 00:00:00 2001 From: Krish Patel Date: Tue, 16 Jul 2024 17:10:42 +0530 Subject: [PATCH] Apply Color Combination --- src/app/CustomerDashboard/MyProfile/page.tsx | 15 +++++--- src/app/globals.css | 5 +++ src/components/CustomerDashboardBox.tsx | 8 ++--- src/components/NavBar.tsx | 32 ++++++----------- src/components/SellerDashboardBox.tsx | 8 ++--- src/components/firebaselogin.tsx | 36 +++++++++++++++++--- tailwind.config.ts | 5 +++ 7 files changed, 72 insertions(+), 37 deletions(-) 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 ( <> -