File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @schematichq/schematic-components" ,
3- "version" : " 0.4.0 " ,
3+ "version" : " 0.4.1 " ,
44 "main" : " dist/schematic-components.cjs.js" ,
55 "module" : " dist/schematic-components.esm.js" ,
66 "types" : " dist/schematic-components.d.ts" ,
Original file line number Diff line number Diff line change @@ -105,7 +105,12 @@ export const Checkout = ({
105105 < Text $size = { 18 } > { t ( "Add payment method" ) } </ Text >
106106 </ Box >
107107
108- < PaymentForm onConfirm = { ( value ) => setPaymentMethodId ( value ) } />
108+ < PaymentForm
109+ onConfirm = { ( value ) => {
110+ setPaymentMethodId ( value ) ;
111+ togglePaymentForm ( ) ;
112+ } }
113+ />
109114
110115 { data . subscription ?. paymentMethod && (
111116 < Box >
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export const PaymentForm = ({ onConfirm }: PaymentFormProps) => {
8484 id = "submit"
8585 disabled = { isLoading || ! stripe || ! elements || isConfirmed }
8686 isLoading = { isLoading }
87+ style = { { flexShrink : 0 } }
8788 $color = "primary"
8889 >
8990 { isLoading ? t ( "Loading" ) : t ( "Save payment method" ) }
You can’t perform that action at this time.
0 commit comments