Skip to content

Commit

Permalink
Create page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanAnsari authored Oct 6, 2024
1 parent eadc531 commit d08e5b8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/dashboard/upgrade/cancel/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use client";
import { useEffect } from "react";
import { useRouter } from "next/navigation";

export default function CancelPage() {
const router = useRouter();

useEffect(() => {
// Redirect to /dashboard/upgrade on page load
router.push("/dashboard/upgrade");
}, [router]);

return (
<div className="flex items-center justify-center min-h-screen">
<p className="text-lg text-gray-600">Redirecting to the upgrade page...</p>
</div>
);
}

0 comments on commit d08e5b8

Please sign in to comment.