fix: type errors

ai/pagination
Arik Chakma 9 months ago
parent 58a5d27854
commit 7daf2e5d1d
  1. 7
      src/components/GenerateRoadmap/GenerateRoadmap.tsx

@ -194,7 +194,7 @@ export function GenerateRoadmap() {
return; return;
} }
if (roadmapTerm === currentRoadmap?.topic) { if (roadmapTerm === currentRoadmap?.term) {
return; return;
} }
@ -285,7 +285,8 @@ export function GenerateRoadmap() {
pageProgressMessage.set('Loading Roadmap'); pageProgressMessage.set('Loading Roadmap');
const { response, error } = await httpGet<{ const { response, error } = await httpGet<{
topic: string; term: string;
title: string;
data: string; data: string;
}>(`${import.meta.env.PUBLIC_API_URL}/v1-get-ai-roadmap/${roadmapId}`); }>(`${import.meta.env.PUBLIC_API_URL}/v1-get-ai-roadmap/${roadmapId}`);
@ -459,7 +460,7 @@ export function GenerateRoadmap() {
{isLoggedInUser && !openAPIKey && ( {isLoggedInUser && !openAPIKey && (
<button <button
onClick={() => setIsConfiguring(true)} onClick={() => setIsConfiguring(true)}
className="text-left rounded-xl border border-current px-2 py-0.5 text-sm text-blue-500 transition-colors hover:bg-blue-400 hover:text-white" className="rounded-xl border border-current px-2 py-0.5 text-left text-sm text-blue-500 transition-colors hover:bg-blue-400 hover:text-white"
> >
By-pass all limits by{' '} By-pass all limits by{' '}
<span className="font-semibold"> <span className="font-semibold">

Loading…
Cancel
Save