Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manikantakailasa committed Feb 15, 2024
1 parent bf7d643 commit fa539a5
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions src/components/YithFeatureCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,29 @@ export function YithFeatureCard({
</Card.Footer>
) : state?.isUpsellNeeded ? (
<Card.Footer>
<Button
className="nfd-w-full nfd-h-9 nfd-border nfd-flex nfd-items-center nfd-gap-2"
variant="upsell"
as="a"
target="_blank"
data-ctb-id={clickToBuyId}
data-action="load-nfd-ctb"
href={primaryUrl}
>
{__("Purchase", "wp-module-ecommerce")}
</Button>
{id !== "e307cb8f-24b5-46e1-81e3-83de32c62c78" ? (
<Button
className="nfd-w-full nfd-h-9 nfd-border nfd-flex nfd-items-center nfd-gap-2"
variant="upsell"
as="a"
target="_blank"
data-ctb-id={clickToBuyId}
data-action="load-nfd-ctb"
href={primaryUrl}
>
{__("Purchase", "wp-module-ecommerce")}
</Button>
) : (
<Button
className="nfd-w-full nfd-h-9 nfd-border nfd-flex nfd-items-center nfd-gap-2"
variant="upsell"
as="a"
target="_blank"
href={primaryUrl}
>
{__("Purchase", "wp-module-ecommerce")}
</Button>
)}
</Card.Footer>
) : (
<Card.Footer>
Expand Down

0 comments on commit fa539a5

Please sign in to comment.