Skip to content

Commit

Permalink
Remove tags and feature image properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabianopb committed Jan 18, 2024
1 parent 3ddcd99 commit 6543d3d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/containers/ProductDetail/ProductDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ProductDetail = () => {
<div>
<Grid stackable columns={2}>
<Grid.Column className={styles.frame}>
<ImageGallery images={product.images} selectedIndex={product.featuredImageIndex} />
<ImageGallery images={product.images} selectedIndex={0} />
</Grid.Column>
<Grid.Column className={styles.frame}>
<div className={`${styles.detailsContainer} flex-column cross-axis-baseline`}>
Expand Down
4 changes: 1 addition & 3 deletions src/containers/ProductGrid/ProductGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ const ProductGrid = () => {
onClick={() => history.push(`/product/${product.id}${location.search}`)}
>
<div className={styles.imageContainer}>
{product.images.length > 0 && (
<Image className={styles.productImage} src={product.images[product.featuredImageIndex].large} />
)}
{product.images.length > 0 && <Image className={styles.productImage} src={product.images[0].large} />}
</div>
<div className={styles.title}>{product.name}</div>
<div className={styles.currentPrice}>
Expand Down
Loading

0 comments on commit 6543d3d

Please sign in to comment.