From 9fb23d05e1eecfea6d613cefa1bd0b4bc4c0af26 Mon Sep 17 00:00:00 2001 From: ectasy663 Date: Mon, 27 Jul 2026 15:12:46 +0530 Subject: [PATCH] fix(ui): separate cbt and pdf dpp viewer logic and fix flex layout on dpp cards --- src/app/dashboard/ai-coach/cbt-dpp/page.tsx | 32 ++++++++----------- src/app/dashboard/dpp/page.tsx | 34 ++++++++------------- 2 files changed, 25 insertions(+), 41 deletions(-) diff --git a/src/app/dashboard/ai-coach/cbt-dpp/page.tsx b/src/app/dashboard/ai-coach/cbt-dpp/page.tsx index 674753c..738af51 100644 --- a/src/app/dashboard/ai-coach/cbt-dpp/page.tsx +++ b/src/app/dashboard/ai-coach/cbt-dpp/page.tsx @@ -145,8 +145,8 @@ export default function PrepPilotAIPage() { return ( - -
+ +
{isAttempted ? :
}
@@ -169,7 +169,7 @@ export default function PrepPilotAIPage() { ) : null}
-

+

{dpp.title} {dpp.difficulty} @@ -185,36 +185,30 @@ export default function PrepPilotAIPage() {

-
+
{isUpcoming ? ( ) : isExpired && !isAttempted ? ( ) : isAttempted ? ( <> - - + + {!isExpired && ( - - )} ) : ( - user?.tier === "Free" ? ( - - ) : ( - - - - ) + )}
diff --git a/src/app/dashboard/dpp/page.tsx b/src/app/dashboard/dpp/page.tsx index 00c32f4..a53cc1e 100644 --- a/src/app/dashboard/dpp/page.tsx +++ b/src/app/dashboard/dpp/page.tsx @@ -145,8 +145,8 @@ export default function DPPPage() { return ( - -
+ +
{isAttempted ? :
}
@@ -169,7 +169,7 @@ export default function DPPPage() { ) : null}
-

+

{dpp.title} {dpp.difficulty} @@ -185,36 +185,26 @@ export default function DPPPage() {

-
+
{isUpcoming ? ( ) : isExpired && !isAttempted ? ( ) : isAttempted ? ( <> - - + + {!isExpired && ( - - - + )} ) : ( - user?.tier === "Free" ? ( - - ) : ( - - - - ) + )}