diff --git a/src/frontend/public/images/Checkmark.png b/src/frontend/public/images/Checkmark.png new file mode 100644 index 00000000..6a5a7249 Binary files /dev/null and b/src/frontend/public/images/Checkmark.png differ diff --git a/src/frontend/src/app/page.tsx b/src/frontend/src/app/page.tsx index ba2285ea..d528c5d7 100644 --- a/src/frontend/src/app/page.tsx +++ b/src/frontend/src/app/page.tsx @@ -11,7 +11,7 @@ export default function Home() { return (
- +
); } diff --git a/src/frontend/src/components/Popup/PaymentSuccess.tsx b/src/frontend/src/components/Popup/PaymentSuccess.tsx new file mode 100644 index 00000000..436ce529 --- /dev/null +++ b/src/frontend/src/components/Popup/PaymentSuccess.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useModal } from "@/context/ModalContext"; +import userService from '@/services/user'; +import { useErrorModal } from '@/hooks/useErrorModal'; +import Image from 'next/image'; +import checkmarkImage from '../../../public/images/Checkmark.png'; + +const PaymentSuccessful: React.FC = () => { + const { closeModal } = useModal(); + + useEffect(() => { + const timer = setTimeout(() => { + closeModal(); + }, 3000); + + return () => clearTimeout(timer); + }, [closeModal]); + + return ( +
+
+
+ Checkmark +
+

Payment Successful

+
+
+ ); +}; + +export default PaymentSuccessful;