feat: Implement payment success confirmation page and testimonials form with new icons.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useState } from 'react';
|
||||
import Image from 'next/image';
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
||||
interface CheckoutFeature {
|
||||
label: string;
|
||||
@@ -15,11 +16,13 @@ const CHECKOUT_FEATURES: CheckoutFeature[] = [
|
||||
|
||||
export function PaymentCheckoutForm() {
|
||||
const [isProcessing, setIsProcessing] = useState(false);
|
||||
const router = useRouter();
|
||||
|
||||
const handlePayNow = async () => {
|
||||
setIsProcessing(true);
|
||||
// TODO: Integrate with payment gateway
|
||||
setTimeout(() => setIsProcessing(false), 2000);
|
||||
// For now, navigate to confirmation page
|
||||
router.push('/agent/settings/billings/confirmation');
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user