Skip to content

Commit c2623a5

Browse files
Update dotcom-rendering/src/components/ProductCardButtons.tsx
Co-authored-by: Jamie B <[email protected]>
1 parent 2ea4ea6 commit c2623a5

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

dotcom-rendering/src/components/ProductCardButtons.tsx

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,22 @@ export const ProductCardButtons = ({
1212
}: {
1313
productCtas: ProductCta[];
1414
dataComponent?: string;
15-
}) => {
16-
return (
17-
<>
18-
{productCtas.map((productCta, index) => {
19-
const label = getLabel(productCta);
20-
return (
21-
<ProductLinkButton
22-
key={label}
23-
label={label}
24-
url={productCta.url}
25-
priority={index === 0 ? 'primary' : 'tertiary'}
26-
fullwidth={true}
27-
data-component={`${
28-
dataComponent ?? 'product-card-button'
29-
}-${index}`}
30-
/>
31-
);
32-
})}
33-
</>
34-
);
35-
};
15+
}) => (
16+
<>
17+
{productCtas.map((productCta, index) => {
18+
const label = getLabel(productCta);
19+
return (
20+
<ProductLinkButton
21+
key={label}
22+
label={label}
23+
url={productCta.url}
24+
priority={index === 0 ? 'primary' : 'tertiary'}
25+
fullwidth={true}
26+
data-component={`${
27+
dataComponent ?? 'product-card-button'
28+
}-${index}`}
29+
/>
30+
);
31+
})}
32+
</>
33+
);

0 commit comments

Comments
 (0)