From f901053ee0bca82b68c21d426ae4ac05d8f4509b Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 9 Mar 2024 14:49:26 +0000 Subject: [PATCH] Update UI for roadmap search --- .../GenerateRoadmap/RoadmapSearch.tsx | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/components/GenerateRoadmap/RoadmapSearch.tsx b/src/components/GenerateRoadmap/RoadmapSearch.tsx index 0473d5fe2..5c84d1034 100644 --- a/src/components/GenerateRoadmap/RoadmapSearch.tsx +++ b/src/components/GenerateRoadmap/RoadmapSearch.tsx @@ -1,4 +1,4 @@ -import { Ban, Wand } from 'lucide-react'; +import { Ban, CircleFadingPlus, Wand } from 'lucide-react'; import type { FormEvent } from 'react'; import { isLoggedIn } from '../../lib/jwt'; import { showLoginPopup } from '../../lib/popup'; @@ -52,7 +52,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) { setRoadmapTopic((e.target as HTMLInputElement).value)} @@ -85,13 +85,12 @@ export function RoadmapSearch(props: RoadmapSearchProps) { )} -
+

- Generated - You have generated + You have generated{' '} {' '} roadmaps. - {!isLoggedIn && ( - <> - {' '} - - +

+

+ {limit > 0 && !isLoggedIn() && ( + )}