File tree Expand file tree Collapse file tree 2 files changed +1
-20
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ const meta = {
255255 display : ArticleDisplay . Standard ,
256256 theme : Pillar . Lifestyle ,
257257 } ,
258- showReadMore : true ,
259258 } ,
260259 render : ( args ) => (
261260 < div
@@ -274,22 +273,6 @@ type Story = StoryObj<typeof meta>;
274273
275274export const Default = { } satisfies Story ;
276275
277- export const WithoutReadMore = {
278- args : {
279- showReadMore : false ,
280- } ,
281- } satisfies Story ;
282-
283- export const WithoutHeadingDisclaimerOrReadMore = {
284- args : {
285- product : {
286- ...product ,
287- primaryHeadingHtml : '' ,
288- } ,
289- showReadMore : false ,
290- } ,
291- } satisfies Story ;
292-
293276export const WithLongHeadingProductNameAndCTA = {
294277 args : {
295278 product : {
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import { ProductCardImage } from './ProductCardImage';
1616export type ProductCarouselCardProps = {
1717 product : ProductBlockElement ;
1818 format : ArticleFormat ;
19- showReadMore ?: boolean ;
2019} ;
2120
2221const baseCard = css `
@@ -76,7 +75,6 @@ const productNameStyle = css`
7675export const ProductCarouselCard = ( {
7776 product,
7877 format,
79- showReadMore,
8078} : ProductCarouselCardProps ) => {
8179 const hasHeading = ! ! product . primaryHeadingHtml ;
8280
@@ -102,7 +100,7 @@ export const ProductCarouselCard = ({
102100 </ div >
103101 </ >
104102 ) }
105- { showReadMore && < div css = { readMoreCta } > Read more</ div > }
103+ < div css = { readMoreCta } > Read more</ div >
106104 < div css = { imageArea } >
107105 < ProductCardImage
108106 format = { format }
You can’t perform that action at this time.
0 commit comments