Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia991 committed Aug 8, 2023
1 parent 73cad41 commit 80cceed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/BasketItem/BasketItem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
flex-direction: row;
}
@media (min-width: 1090px) {
justify-content:baseline;
justify-content: baseline;
gap: 12px;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Card/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
&__img {
height: 208px;
margin-bottom: 24px;
transition: transform 0.3s ease;

&:hover {
transform: scale(1.2);
Expand Down
10 changes: 8 additions & 2 deletions src/components/ProductList/ProductsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,13 @@ export const ProductsList: React.FC<Props> = ({ query }) => {
} else {
setItems(favoriteItem);
}
}, [firstLocation, favoriteItem]);
}, [firstLocation]);

useEffect(() => {
if (firstLocation === 'favorites') {
setItems(favoriteItem);
}
}, [favoriteItem]);

useEffect(() => {
sortVisibleProd();
Expand All @@ -182,7 +188,7 @@ export const ProductsList: React.FC<Props> = ({ query }) => {
const pageTitle = () => {
switch (firstLocation) {
case 'phones':
return 'Mobiel phones';
return 'Mobile phones';

case 'tablets':
return 'Tablets';
Expand Down

0 comments on commit 80cceed

Please sign in to comment.