@@ -76,6 +76,17 @@ const useStyles = makeStyles(
7676 flex : 'auto' ,
7777 } ,
7878 } ,
79+ flexColumnContainer : {
80+ display : 'flex' ,
81+ flexDirection : 'column' ,
82+ flex : '1.75 1 0' ,
83+ gap : 20 ,
84+
85+ [ theme . breakpoints . down ( 'sm' ) ] : {
86+ width : '100%' ,
87+ flex : 'auto' ,
88+ } ,
89+ } ,
7990 cardContainerTitle : {
8091 fontSize : 14 ,
8192 fontWeight : 'bold' ,
@@ -104,6 +115,11 @@ const useStyles = makeStyles(
104115 fontSize : 13 ,
105116 flex : '1 1 0' ,
106117 } ,
118+ button : {
119+ '&:hover' : {
120+ color : '#0F879D' ,
121+ } ,
122+ } ,
107123 columnContainer : {
108124 display : 'flex' ,
109125 alignItems : 'center' ,
@@ -342,7 +358,7 @@ function StripeForm(props: {
342358 < div >
343359 { stripeStyles }
344360 < div className = { classes . paperContainer } >
345- < Box className = { classes . subscriptionContainer } >
361+ < Box className = { classes . flexColumnContainer } >
346362 < p className = { classes ?. cardContainerTitle } > Subscriptions</ p >
347363 { state . billingInfo . length > 0 ? (
348364 state . billingInfo . map (
@@ -406,13 +422,14 @@ function StripeForm(props: {
406422 ) }
407423 </ Box >
408424 < Box className = { classes . subscriptionContainer } >
409- < p className = { classes ?. cardContainerTitle } > Payment methods </ p >
425+ < p className = { classes ?. cardContainerTitle } > Payments </ p >
410426 < Paper className = { classes ?. cardContainer } >
411427 < Box
412428 sx = { {
413429 display : 'flex' ,
414- justifyContent : 'flex-end ' ,
430+ justifyContent : 'flex-start ' ,
415431 alignItems : 'center' ,
432+ gap : '1rem' ,
416433 } }
417434 >
418435 < Button
@@ -426,9 +443,23 @@ function StripeForm(props: {
426443 < Spinner size = "sm" className = { classes . spinner } />
427444 ) }
428445 </ Button >
446+ { state . cards . length > 0 && (
447+ < Button
448+ variant = "outlined"
449+ color = "secondary"
450+ className = { classes . button }
451+ disabled = { props . disabled || state . isLoading }
452+ onClick = { handleSubmit }
453+ >
454+ Invoices
455+ { state . isLoading && (
456+ < Spinner size = "sm" className = { classes . spinner } />
457+ ) }
458+ </ Button >
459+ ) }
429460 </ Box >
430461 { state . cards . length === 0 && ! state . isFetching ? (
431- < p className = { classes . emptyMethod } > No payment method available</ p >
462+ < p className = { classes . emptyMethod } > No payment methods available</ p >
432463 ) : (
433464 < >
434465 { state . cards . map (
0 commit comments