Skip to content

Commit 411e975

Browse files
committed
Minor changes
1 parent 514c6ff commit 411e975

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

src/assets/scss/components/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
@import 'footer';
2222
@import 'alerts';
2323
@import 'search';
24-
@import 'productCard.scss';
24+
@import 'productSelect.scss';

src/assets/scss/components/productCard.scss renamed to src/assets/scss/components/productSelect.scss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,8 @@
2929
}
3030
}
3131

32-
.product-title {
33-
padding-left: 10px;
34-
width: 160px;
35-
36-
h2 {
37-
margin: 0;
38-
}
39-
}
40-
4132
.product-logo {
42-
width: 90px;
33+
width: 230px;
4334

4435
img {
4536
width: 90px;

src/components/ProductSelect.jsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ const ProductSkeleton = () => {
66
<div className='flex flex-row flex-center product-card'>
77
<div className='flex flex-center'>
88
<div className='product-logo'>
9-
<Skeleton height={62} />
10-
</div>
11-
<div className='product-title'>
12-
<Skeleton count={2} height={30} />
9+
<Skeleton height={56} />
1310
</div>
1411
</div>
1512
<div className='circle-container'>
@@ -34,11 +31,8 @@ const ProductCard = ({ product, selected, setProduct }) => {
3431
}}
3532
>
3633
<div className='flex flex-center'>
37-
<div className='flex flex-align-center product-logo'>
38-
<img src={product.logo.url} alt={`${product.Name} logo`} />
39-
</div>
40-
<div className='product-title'>
41-
<h2>{product.Name}</h2>
34+
<div className='flex flex-center product-logo'>
35+
<img src={product.logo?.url} alt={`${product.Name} logo`} />
4236
</div>
4337
</div>
4438
<div className='circle-container'>

0 commit comments

Comments
 (0)