diff --git a/amplify/functions/cancelPlan/src/package-lock.json b/amplify/functions/cancelPlan/src/package-lock.json index af3b1b28..645ca6b6 100644 --- a/amplify/functions/cancelPlan/src/package-lock.json +++ b/amplify/functions/cancelPlan/src/package-lock.json @@ -19,9 +19,9 @@ "license": "MIT" }, "node_modules/axios": { - "version": "1.7.9", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", - "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz", + "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", diff --git a/amplify/functions/planManagement/src/package-lock.json b/amplify/functions/planManagement/src/package-lock.json index af3b1b28..645ca6b6 100644 --- a/amplify/functions/planManagement/src/package-lock.json +++ b/amplify/functions/planManagement/src/package-lock.json @@ -19,9 +19,9 @@ "license": "MIT" }, "node_modules/axios": { - "version": "1.7.9", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", - "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz", + "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", diff --git a/app/(main-layout)/landing/components/FirstView.tsx b/app/(main-layout)/landing/components/FirstView.tsx index 1261a25d..9b3f57c8 100644 --- a/app/(main-layout)/landing/components/FirstView.tsx +++ b/app/(main-layout)/landing/components/FirstView.tsx @@ -1,4 +1,7 @@ +'use client' + import { Button } from '@/components/ui/button' +import { useRouter } from 'next/navigation' import { ArrowRight } from 'lucide-react' import { motion } from 'framer-motion' import Link from 'next/link' @@ -32,9 +35,10 @@ const slides = [ export function FirstView() { const swiperRef = useRef() const [activeIndex, setActiveIndex] = useState(0) + const router = useRouter() - const rediret = () => { - window.location.href = '/first-steps' + const redirect = () => { + router.push('/first-steps') } return ( @@ -93,7 +97,7 @@ export function FirstView() {