ai/roadmap
Kamran Ahmed 11 months ago
parent 377d5d763e
commit 5e67914d7d
  1. 4
      src/components/GenerateRoadmap/GenerateRoadmap.tsx
  2. 10
      src/components/GenerateRoadmap/RoadmapSearch.tsx

@ -177,8 +177,6 @@ export function GenerateRoadmap() {
}; };
const loadAIRoadmapLimit = async () => { const loadAIRoadmapLimit = async () => {
pageProgressMessage.set('Loading Roadmap Limit');
const { response, error } = await httpGet<{ const { response, error } = await httpGet<{
limit: number; limit: number;
used: number; used: number;
@ -192,8 +190,6 @@ export function GenerateRoadmap() {
const { limit, used } = response; const { limit, used } = response;
setRoadmapLimit(limit); setRoadmapLimit(limit);
setRoadmapLimitUsed(used); setRoadmapLimitUsed(used);
pageProgressMessage.set('');
}; };
const loadAIRoadmap = async (roadmapId: string) => { const loadAIRoadmap = async (roadmapId: string) => {

@ -2,6 +2,7 @@ import { Wand } from 'lucide-react';
import type { FormEvent } from 'react'; import type { FormEvent } from 'react';
import { isLoggedIn } from '../../lib/jwt'; import { isLoggedIn } from '../../lib/jwt';
import { showLoginPopup } from '../../lib/popup'; import { showLoginPopup } from '../../lib/popup';
import { cn } from '../../lib/classname.ts';
type RoadmapSearchProps = { type RoadmapSearchProps = {
roadmapTopic: string; roadmapTopic: string;
@ -50,7 +51,14 @@ export function RoadmapSearch(props: RoadmapSearchProps) {
<div className="mb-36"> <div className="mb-36">
<p className="text-gray-500"> <p className="text-gray-500">
You have generated{' '} You have generated{' '}
<span className="text-gray-800"> <span
className={cn(
'inline-block border w-[50px] text-sm rounded-md text-center tabular-nums text-gray-800',
{
'bg-zinc-300 text-zinc-300 border-zinc-300 animate-pulse': !limit,
},
)}
>
{limitUsed} of {limit} {limitUsed} of {limit}
</span>{' '} </span>{' '}
roadmaps today. roadmaps today.

Loading…
Cancel
Save