refactor(payment): unify method selector visibility

This commit is contained in:
2026-07-20 16:14:48 +08:00
parent bc6373f4c0
commit 1f8bbe9022
4 changed files with 51 additions and 29 deletions
+9 -12
View File
@@ -224,18 +224,15 @@ export function SubscriptionScreen({
/>
</div>
{paymentMethodConfig.canChoosePaymentMethod ? (
<section className={styles.paymentMethodSlot}>
<PaymentMethodSelector
value={payment.payChannel}
defaultChannel={paymentMethodConfig.initialPayChannel}
disabled={isPaymentBusy}
caption="GCash by default in the Philippines"
analyticsKey="subscription.payment_method"
onChange={handlePaymentMethodChange}
/>
</section>
) : null}
<PaymentMethodSelector
config={paymentMethodConfig}
value={payment.payChannel}
disabled={isPaymentBusy}
caption="GCash by default in the Philippines"
className={styles.paymentMethodSlot}
analyticsKey="subscription.payment_method"
onChange={handlePaymentMethodChange}
/>
<div className={styles.ctaSlot}>
<SubscriptionCheckoutButton