From 05d4d4a8693f09fef2cc77a1413c6691f7331940 Mon Sep 17 00:00:00 2001 From: Jin Young Bang Date: Wed, 17 Apr 2024 14:51:59 -0400 Subject: [PATCH] feat: implement success redirection --- src/app/checkin/[id]/page.tsx | 2 +- src/app/checkin/success/page.tsx | 43 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/app/checkin/success/page.tsx diff --git a/src/app/checkin/[id]/page.tsx b/src/app/checkin/[id]/page.tsx index f38c45f..ad5a672 100644 --- a/src/app/checkin/[id]/page.tsx +++ b/src/app/checkin/[id]/page.tsx @@ -68,7 +68,7 @@ export default function Checkin({ params }: { params: { id: string } }) { return res.json(); }) .then((data) => { - router.push("https://bupct.com/"); + router.push("/checkin/success"); }) .catch((err) => { setError(err); diff --git a/src/app/checkin/success/page.tsx b/src/app/checkin/success/page.tsx new file mode 100644 index 0000000..a81fe57 --- /dev/null +++ b/src/app/checkin/success/page.tsx @@ -0,0 +1,43 @@ +"use client" + +export default function Success() { + + return ( + +
+
+ + + + + + + + + + + + + + + + + + + + + + +

You're all checked in.

+ +

Thank you for your interest in Phi Chi Theta, Zeta Chapter!

+
+
+ ); +} + +