File tree Expand file tree Collapse file tree 1 file changed +19
-21
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +19
-21
lines changed Original file line number Diff line number Diff 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+ ) ;
You can’t perform that action at this time.
0 commit comments