Skip to content

Commit 1788655

Browse files
more styling changes
1 parent b446bc8 commit 1788655

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

static/js/src/advantage/subscribe/react/components/PaymentButton/PaymentButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Button } from "@canonical/react-components";
33
import { FormContext } from "../../utils/FormContext";
44
import { 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>

static/js/src/advantage/subscribe/react/components/ProductSummary/ProductSummary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}>

0 commit comments

Comments
 (0)