From 29bce749bb39410d9dd9fd24460f4d62866157ff Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 23 Sep 2024 12:00:23 +0100 Subject: [PATCH] Update button design for cards --- .astro/settings.json | 2 +- .../Dashboard/DashboardAiRoadmaps.tsx | 17 +++++++---------- .../Dashboard/ListDashboardCustomProgress.tsx | 17 +++++++---------- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/.astro/settings.json b/.astro/settings.json index 281b1c71d..3c7258e30 100644 --- a/.astro/settings.json +++ b/.astro/settings.json @@ -3,6 +3,6 @@ "enabled": false }, "_variables": { - "lastUpdateCheck": 1725962974592 + "lastUpdateCheck": 1727087951727 } } \ No newline at end of file diff --git a/src/components/Dashboard/DashboardAiRoadmaps.tsx b/src/components/Dashboard/DashboardAiRoadmaps.tsx index c3d96bbec..63539d52d 100644 --- a/src/components/Dashboard/DashboardAiRoadmaps.tsx +++ b/src/components/Dashboard/DashboardAiRoadmaps.tsx @@ -28,18 +28,15 @@ export function DashboardAiRoadmaps(props: DashboardAiRoadmapsProps) { <>

- AI Generated Roadmaps + My AI Roadmaps

- {!isLoading && roadmaps.length !== 0 && ( - - - AI Generated Roadmaps - - )} + + AI Generated Roadmaps +
{!isLoading && roadmaps.length === 0 && ( diff --git a/src/components/Dashboard/ListDashboardCustomProgress.tsx b/src/components/Dashboard/ListDashboardCustomProgress.tsx index 3dbc47304..67febd891 100644 --- a/src/components/Dashboard/ListDashboardCustomProgress.tsx +++ b/src/components/Dashboard/ListDashboardCustomProgress.tsx @@ -48,18 +48,15 @@ export function ListDashboardCustomProgress(

- {isAIGeneratedRoadmaps ? 'AI Generated Roadmaps' : 'Custom Roadmaps'} + {isAIGeneratedRoadmaps ? 'My AI Roadmaps' : 'My Custom Roadmaps'}

- {!isLoading && progresses.length !== 0 && ( - - - Community Roadmaps - - )} + + Community Roadmaps +
{!isLoading && progresses.length === 0 && isAIGeneratedRoadmaps && (