From c01fed4f18b58482a4b885707f4350bfa284ce0b Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Sat, 9 Mar 2024 19:06:29 +0600 Subject: [PATCH] chore: update naming --- src/components/ExploreAIRoadmap/ExploreAIRoadmap.tsx | 2 +- src/components/GenerateRoadmap/GenerateRoadmap.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ExploreAIRoadmap/ExploreAIRoadmap.tsx b/src/components/ExploreAIRoadmap/ExploreAIRoadmap.tsx index 0f5fa8e4d..616b58709 100644 --- a/src/components/ExploreAIRoadmap/ExploreAIRoadmap.tsx +++ b/src/components/ExploreAIRoadmap/ExploreAIRoadmap.tsx @@ -40,7 +40,7 @@ export function ExploreAIRoadmap() { const loadAIRoadamps = useCallback( async (currPage: number) => { const { response, error } = await httpGet( - `${import.meta.env.PUBLIC_API_URL}/v1-explore-roadmaps`, + `${import.meta.env.PUBLIC_API_URL}/v1-list-ai-roadmaps`, { currPage, }, diff --git a/src/components/GenerateRoadmap/GenerateRoadmap.tsx b/src/components/GenerateRoadmap/GenerateRoadmap.tsx index bdb6c1c18..6b1816d7f 100644 --- a/src/components/GenerateRoadmap/GenerateRoadmap.tsx +++ b/src/components/GenerateRoadmap/GenerateRoadmap.tsx @@ -176,7 +176,7 @@ export function GenerateRoadmap() { setIsLoading(false); }; - const addToCustomRoadmap = async () => { + const saveAIRoadmap = async () => { if (!isLoggedIn()) { showLoginPopup(); return; @@ -189,7 +189,7 @@ export function GenerateRoadmap() { const { response, error } = await httpPost<{ roadmapId: string; }>( - `${import.meta.env.PUBLIC_API_URL}/v1-edit-ai-generated-roadmap/${currentRoadmap?.id}`, + `${import.meta.env.PUBLIC_API_URL}/v1-save-ai-roadmap/${currentRoadmap?.id}`, { title: roadmapTopic, nodes: nodes.map((node) => ({ @@ -468,7 +468,7 @@ export function GenerateRoadmap() {