1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-09 00:30:40 +02:00

User guides listing

This commit is contained in:
Kamran Ahmed
2025-06-19 01:26:41 +01:00
parent 2a61e6aab6
commit 42b4c0cf6d
2 changed files with 6 additions and 2 deletions

View File

@@ -89,7 +89,9 @@ export function UserCoursesList() {
{!isAnyLoading && (
<>
<p className="mb-4 text-sm text-gray-500">
You have generated {userAiCourses?.totalCount} courses so far.
{isUserAuthenticated
? `You have generated ${userAiCourses?.totalCount} courses so far.`
: 'Sign up or login to generate your first course. Takes 2s to do so.'}
</p>
{isUserAuthenticated && !isAnyLoading && courses.length > 0 && (

View File

@@ -90,7 +90,9 @@ export function UserGuidesList() {
{!isAnyLoading && (
<>
<p className="mb-4 text-sm text-gray-500">
You have generated {userAiGuides?.totalCount} guides so far.
{isUserAuthenticated
? `You have generated ${userAiGuides?.totalCount} guides so far.`
: 'Sign up or login to generate your first guide. Takes 2s to do so.'}
</p>
{isUserAuthenticated && !isAnyLoading && guides.length > 0 && (