diff --git a/apps/dashboard/src/components/payments/checkout.tsx b/apps/dashboard/src/components/payments/checkout.tsx index 175fae7f8..b7366960a 100644 --- a/apps/dashboard/src/components/payments/checkout.tsx +++ b/apps/dashboard/src/components/payments/checkout.tsx @@ -1,10 +1,15 @@ -import { Button, Typography } from "@/components/ui"; +"use client"; + +import { DesignButton } from "@/components/design-components/button"; +import { DesignCard } from "@/components/design-components/card"; +import { Typography } from "@/components/ui"; import { PaymentElement, useElements, useStripe, } from "@stripe/react-stripe-js"; import { StripeError, StripePaymentElementOptions } from "@stripe/stripe-js"; +import { FlaskIcon, WarningCircleIcon } from "@phosphor-icons/react"; import { useState } from "react"; const paymentElementOptions = { @@ -90,22 +95,35 @@ export function CheckoutForm({ if (onTestModeBypass) { return ( -
-
- Test mode active -

- This project is in test mode. Use the bypass button to simulate a purchase. -

+
+ {/* Centered Beaker Icon */} +
+
-
+ + {/* Centered Action Button */} + Complete test purchase - + + {message && ( -
{message}
+ + {message} + )}
); @@ -113,29 +131,39 @@ export function CheckoutForm({ if (!chargesEnabled) { return ( -
-
- Payments not enabled -

- This project does not have payments enabled yet. Please contact the app developer to finish setting up payments. -

+ +
+
+ +
+
+ + Payments not enabled + + + This project does not have payments enabled yet. Please contact the app developer to finish setting up payments. + +
-
+ ); } return ( -
+ - + {message && ( -
{message}
+ + {message} + )} -
+ ); }