File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -12,22 +12,21 @@ import {
1212} from '@guardian/source/foundations' ;
1313import type { ArticleFormat } from '../lib/articleFormat' ;
1414import { palette } from '../palette' ;
15- import type { ProductCta , ProductImage } from '../types/content' ;
15+ import type {
16+ ProductCta ,
17+ ProductCustomAttribute ,
18+ ProductImage ,
19+ } from '../types/content' ;
1620import { ProductCardButtons } from './ProductCardButtons' ;
1721import { ProductCardImage } from './ProductCardImage' ;
1822
19- export type CustomAttributes = {
20- name : string ;
21- value : string ;
22- } ;
23-
2423export type InlineProductCardProps = {
2524 format : ArticleFormat ;
2625 brandName : string ;
2726 productName : string ;
2827 image ?: ProductImage ;
2928 productCtas : ProductCta [ ] ;
30- customAttributes : CustomAttributes [ ] ;
29+ customAttributes : ProductCustomAttribute [ ] ;
3130 isCardOnly : boolean ;
3231 shouldShowLeftColCard ?: boolean ;
3332 lowestPrice ?: string ;
@@ -140,7 +139,7 @@ const customAttributeItem = css`
140139 }
141140` ;
142141
143- const CustomAttribute = ( { name, value } : CustomAttributes ) => (
142+ const CustomAttribute = ( { name, value } : ProductCustomAttribute ) => (
144143 < div css = { customAttributeItem } >
145144 < strong > { name } </ strong >
146145 < br />
Original file line number Diff line number Diff line change @@ -872,6 +872,11 @@ export type ProductCta = {
872872 price : string ;
873873} ;
874874
875+ export type ProductCustomAttribute = {
876+ name : string ;
877+ value : string ;
878+ } ;
879+
875880export interface SrcSetItem {
876881 src : string ;
877882 width : number ;
You can’t perform that action at this time.
0 commit comments