Skip to content

Commit fbd0c27

Browse files
authored
Revert "Render Debit or Credit Card when style.layout is "horizontal" (#2346)" (#2359)
This reverts commit cb3d943.
1 parent c2eaf53 commit fbd0c27

File tree

3 files changed

+4
-95
lines changed

3 files changed

+4
-95
lines changed

Diff for: src/funding/card/config.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function getCardConfig(): FundingSourceConfig {
123123
BUTTON_FLOW.SUBSCRIPTION_SETUP,
124124
],
125125

126-
layouts: [BUTTON_LAYOUT.HORIZONTAL, BUTTON_LAYOUT.VERTICAL],
126+
layouts: [BUTTON_LAYOUT.VERTICAL],
127127

128128
maxCards: maxCardForCountry,
129129

Diff for: src/ui/buttons/buttons.jsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,7 @@ export function Buttons(props: ButtonsProps): ElementNode {
288288
/>
289289
))}
290290

291-
{tagline &&
292-
layout === BUTTON_LAYOUT.HORIZONTAL &&
293-
!fundingSource &&
294-
!fundingSources.includes(FUNDING.CARD) ? (
291+
{tagline && layout === BUTTON_LAYOUT.HORIZONTAL && !fundingSource ? (
295292
<TagLine
296293
fundingSource={fundingSources[0]}
297294
style={style}
@@ -313,7 +310,8 @@ export function Buttons(props: ButtonsProps): ElementNode {
313310
/>
314311
) : null}
315312

316-
{fundingSources.includes(FUNDING.CARD) ? (
313+
{layout === BUTTON_LAYOUT.VERTICAL &&
314+
fundingSources.indexOf(FUNDING.CARD) !== -1 ? (
317315
<PoweredByPayPal locale={locale} nonce={nonce} />
318316
) : null}
319317

Diff for: src/ui/buttons/buttons.test.jsx

-89
This file was deleted.

0 commit comments

Comments
 (0)