@@ -7,6 +7,9 @@ import Image from "next/image";
77
88import { Header } from "@/components/dashboard/header" ;
99import reader1_img from "@/assets/images/reader1.png" ;
10+ import DirectNotificationContent from "@/components/dashboard/DirectNotificationContent" ;
11+ import ReviewsAndFeedbackContent from "@/components/dashboard/ReviewsAndFeedbackContent" ;
12+ import TransactionContent from "@/components/dashboard/TransactionContent" ;
1013
1114import { Search } from "lucide-react" ;
1215
@@ -67,9 +70,9 @@ const UserProfilePage = () => {
6770 const [ activeTab , setActiveTab ] = useState ( "Library" ) ;
6871 const [ activeFilter , setActiveFilter ] = useState ( "All" ) ;
6972
70- const setShowModal = ( show : boolean ) => {
73+ const setShowModal = ( show : boolean ) => {
7174 setSuspendModalOpen ( show ) ;
72- }
75+ } ;
7376
7477 const stats = [
7578 { label : "Following" , value : "4" , color : "text-blue-600" } ,
@@ -229,9 +232,11 @@ const UserProfilePage = () => {
229232 return (
230233 < >
231234 < Header title = "Reader's Profile" />
232- { suspendModalOpen && < div className = "min-h-screen h-full p-4 md:p-6 absolute top-0 left-0 right-0 z-50" >
233- < SuspendUserModal setShow = { setShowModal } />
234- </ div > }
235+ { suspendModalOpen && (
236+ < div className = "min-h-screen h-full p-4 md:p-6 absolute top-0 left-0 right-0 z-50" >
237+ < SuspendUserModal setShow = { setShowModal } />
238+ </ div >
239+ ) }
235240 < div className = "min-h-screen bg-gray-50 p-4 md:p-6" >
236241 < div className = "w-full mx-auto" >
237242 { /* Header Section */ }
@@ -290,7 +295,10 @@ const UserProfilePage = () => {
290295 { /* Stats Grid */ }
291296 < div className = "grid grid-cols-2 md:grid-cols-4 gap-4 mt-12" >
292297 { stats . map ( ( stat , index ) => (
293- < div key = { index } className = " border p-4 rounded-lg" >
298+ < div
299+ key = { index }
300+ className = " border border-[#E9F7FF] p-4 rounded-lg"
301+ >
294302 < div className = "text-sm text-gray-500 mt-1 mb-2" >
295303 { stat . label }
296304 </ div >
@@ -340,7 +348,10 @@ const UserProfilePage = () => {
340348 { /* Library Stats */ }
341349 < div className = "grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6" >
342350 { libraryStats . map ( ( stat , index ) => (
343- < div key = { index } className = " border p-6 rounded-lg" >
351+ < div
352+ key = { index }
353+ className = " border border-[#E9F7FF] p-6 rounded-lg"
354+ >
344355 < div className = "text-xs text-gray-500" > { stat . label } </ div >
345356
346357 < div className = "text-lg font-bold text-gray-700" >
@@ -388,14 +399,30 @@ const UserProfilePage = () => {
388399 </ div >
389400 ) }
390401
402+ { /* Direct Notification Content */ }
403+ { activeTab === "Direct Notification" && (
404+ < DirectNotificationContent />
405+ ) }
406+
407+ { /* Transaction Content */ }
408+ { activeTab === "Transactions" && < TransactionContent /> }
409+
410+ { /* Reviews & Feedback Content */ }
411+ { activeTab === "Reviews & Feedback" && (
412+ < ReviewsAndFeedbackContent />
413+ ) }
414+
391415 { /* Other Tab Contents */ }
392- { activeTab !== "Library" && (
393- < div className = "p-6" >
394- < div className = "text-center text-gray-500 py-8" >
395- { activeTab } content would go here
416+ { activeTab !== "Library" &&
417+ activeTab !== "Direct Notification" &&
418+ activeTab !== "Transactions" &&
419+ activeTab !== "Reviews & Feedback" && (
420+ < div className = "p-6" >
421+ < div className = "text-center text-gray-500 py-8" >
422+ { activeTab } content would go here
423+ </ div >
396424 </ div >
397- </ div >
398- ) }
425+ ) }
399426 </ div >
400427 </ div >
401428 </ div >
0 commit comments