File tree Expand file tree Collapse file tree
static/js/src/advantage/subscribe/react/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Button } from "@canonical/react-components";
33import { FormContext } from "../../utils/FormContext" ;
44import { ProductUsers } from "../../utils/utils" ;
55
6- export default function PaymentButton ( ) {
6+ export default function PaymentButton ( { ... props } ) {
77 const { quantity, product, productUser } = useContext ( FormContext ) ;
88 let params = new URLSearchParams ( document . location . search ) ;
99 let referral_id = params . get ( "referral_id" ) || "" ;
@@ -26,6 +26,7 @@ export default function PaymentButton() {
2626 e . preventDefault ( ) ;
2727 location . href = "/pro/dashboard" ;
2828 } }
29+ { ...props }
2930 >
3031 Register
3132 </ Button >
@@ -41,6 +42,7 @@ export default function PaymentButton() {
4142 localStorage . setItem ( "referral_id" , referral_id ) ;
4243 location . href = "/account/checkout" ;
4344 } }
45+ { ...props }
4446 >
4547 Continue to checkout
4648 </ Button >
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ const ProductSummary = () => {
124124 Free trial on checkout
125125 </ StatusLabel >
126126 ) : null }
127- < PaymentButton />
127+ < PaymentButton style = { { marginBottom : "0" } } />
128128 </ Col >
129129 </ Row >
130130 </ section >
@@ -206,7 +206,7 @@ const ProductSummary = () => {
206206 </ p >
207207 </ Col >
208208 < Col size = { 12 } >
209- < PaymentButton />
209+ < PaymentButton style = { { marginBottom : "0" } } />
210210 </ Col >
211211 { product ?. canBeTrialled && productUser !== ProductUsers . myself ? (
212212 < Col size = { 12 } >
You can’t perform that action at this time.
0 commit comments