feat(api): restructure api with axios and chainage related changes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useRouter } from "next/navigation"
|
||||
import dynamic from "next/dynamic"
|
||||
import { saveSession } from "@/lib/api"
|
||||
import { sessionService } from "@/services/api"
|
||||
import { SessionContext } from "@/types"
|
||||
import { PowerCircle, TrendingUp } from "lucide-react"
|
||||
import { PageHeader } from "@/components/page-header"
|
||||
@@ -21,7 +21,7 @@ export default function NewAnalysisPage() {
|
||||
|
||||
const handleSelectionComplete = (session: SessionContext) => {
|
||||
// Save session to storage and navigate to upload page
|
||||
saveSession(session)
|
||||
sessionService.saveSession(session)
|
||||
router.push(ROUTES.UPLOAD)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user