fix: remove billing address

This commit is contained in:
Nevo David 2026-01-17 13:28:09 +07:00
parent 47e7c843c9
commit ba0a2498a4
1 changed files with 12 additions and 9 deletions

View File

@ -139,21 +139,24 @@ const StripeInputs: FC<{
const [ready, setReady] = useState(false);
return (
<>
{/*<div>*/}
{/* <h4 className="mb-[32px] text-[24px] font-[700]">*/}
{/* {checkout.type === 'loading'*/}
{/* ? ''*/}
{/* : t('billing_billing_address', 'Billing Address')}*/}
{/* </h4>*/}
{/* <BillingAddressElement />*/}
{/*</div>*/}
<div>
<h4 className="mb-[32px] text-[24px] font-[700]">
{checkout.type === 'loading'
? ''
: t('billing_billing_address', 'Billing Address')}
</h4>
<BillingAddressElement />
</div>
<div>
<h4 className="mt-[40px] mb-[32px] text-[24px] font-[700]">
{checkout.type === 'loading' ? '' : t('billing_payment', 'Payment')}
</h4>
<PaymentElement
id="payment-element"
options={{ layout: 'tabs' }}
options={{
fields: { billingDetails: { address: 'if_required' } },
layout: 'tabs',
}}
onReady={() => setReady(true)}
/>
{ready && <PriceBreakdown />}