From e6ec9e7f15b8f96b197b4ca4ae59b7b343cd253a Mon Sep 17 00:00:00 2001 From: eliang-stripe <99840257+eliang-stripe@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:12:50 -0500 Subject: [PATCH] fix input focus bug (#171) --- app/components/Screen.tsx | 2 +- .../testdata/CreateCheckoutSessionButton.tsx | 70 +++++++++--------- .../testdata/CreatePaymentsButton.tsx | 71 +++++++++---------- 3 files changed, 70 insertions(+), 73 deletions(-) diff --git a/app/components/Screen.tsx b/app/components/Screen.tsx index b52e97e..4402989 100644 --- a/app/components/Screen.tsx +++ b/app/components/Screen.tsx @@ -24,7 +24,7 @@ export default function Screen({ {/* Tools Panel container */}
diff --git a/app/components/testdata/CreateCheckoutSessionButton.tsx b/app/components/testdata/CreateCheckoutSessionButton.tsx index 0ccda69..8037588 100644 --- a/app/components/testdata/CreateCheckoutSessionButton.tsx +++ b/app/components/testdata/CreateCheckoutSessionButton.tsx @@ -138,9 +138,28 @@ export default function CreateCheckoutSessionButton({ } }; - const CreateCheckoutSessionForm = () => { - return ( - <> + return ( + + + + + + + Create test Checkout Session + + Simulate a grooming payment by creating a{' '} + + Checkout Session + + . + +
Amount - +
+
+ $ +
+ +
@@ -192,33 +217,6 @@ export default function CreateCheckoutSessionButton({ - - ); - }; - - return ( - - - - - - - Create test Checkout Session - - Simulate a grooming payment by creating a{' '} - - Checkout Session - - . - - - ); diff --git a/app/components/testdata/CreatePaymentsButton.tsx b/app/components/testdata/CreatePaymentsButton.tsx index 8e2689b..f248e9f 100644 --- a/app/components/testdata/CreatePaymentsButton.tsx +++ b/app/components/testdata/CreatePaymentsButton.tsx @@ -151,9 +151,29 @@ export default function CreatePaymentsButton({classes}: {classes?: string}) { } }; - const CreatePaymentsForm = () => { - return ( - <> + return ( + + + + + + + Create test payments + + Simulate a grooming session by using a testmode payment method to{' '} + + create a payment intent + + . + + +
Amount - +
+
+ $ +
+ +
@@ -247,33 +273,6 @@ export default function CreatePaymentsButton({classes}: {classes?: string}) { - - ); - }; - - return ( - - - - - - - Create test payments - - Simulate a grooming session by using a testmode payment method to{' '} - - create a payment intent - - . - - - );