Skip to content

Commit 7d32ab3

Browse files
committed
Remove unused type from ProductElement
1 parent d4f2ed8 commit 7d32ab3

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

dotcom-rendering/src/components/ProductElement.tsx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,11 @@ import type { ReactNode } from 'react';
44
import type { ArticleFormat } from '../lib/articleFormat';
55
import { parseHtml } from '../lib/domUtils';
66
import type { NestedArticleElement } from '../lib/renderElement';
7-
import type {
8-
FEElement,
9-
ProductBlockElement,
10-
ProductCta,
11-
ProductDisplayType,
12-
ProductImage,
13-
} from '../types/content';
7+
import type { ProductBlockElement } from '../types/content';
148
import { ProductCardInline } from './ProductCardInline';
159
import { ProductCardLeftCol } from './ProductCardLeftCol';
1610
import { buildElementTree } from './SubheadingBlockComponent';
1711

18-
export type Product = {
19-
primaryHeadline: string;
20-
secondaryHeadline: string;
21-
brandName: string;
22-
productName: string;
23-
image: ProductImage;
24-
retailer: string;
25-
customAttributes: {
26-
name: string;
27-
value: string;
28-
}[];
29-
content: FEElement[];
30-
displayType: ProductDisplayType;
31-
productCtas: ProductCta[];
32-
};
33-
3412
const contentContainer = css`
3513
position: relative;
3614
`;

0 commit comments

Comments
 (0)