Skip to content

Commit

Permalink
add all together
Browse files Browse the repository at this point in the history
  • Loading branch information
lesdyman committed Jul 26, 2024
1 parent 8a57e84 commit 4d45f37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Grid = () => {
setItemsPerPage(parseInt(selectedOption.value, 10));
};

const handleSortByVersion = (selectedOption: {value: string}) => {
const handleSortByVersion = (selectedOption: { value: string }) => {
const select = selectedOption.value;
// eslint-disable-next-line no-console
console.log(select);
Expand Down
8 changes: 6 additions & 2 deletions src/components/ProductCard/ProductCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import { Device } from '../../types/Device';

type Props = {
phone: Device;
}
};

export const ProductCard: React.FC<Props> = ({ phone }) => (
<div className="product" key={phone.id}>
<img src={phone.images[0]} alt={phone.name} className="product_images list__item example" />
<img
src={phone.images[0]}
alt={phone.name}
className="product_images list__item example"
/>
<h2 className="product_name">{phone.name}</h2>

<div className="product_price">
Expand Down
5 changes: 1 addition & 4 deletions src/shared/ui/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ const customStyles: StylesConfig = {
}),
};

export const SelectComponent: React.FC<Props> = ({
option,
handleChange,
}) => (
export const SelectComponent: React.FC<Props> = ({ option, handleChange }) => (
<Select
styles={customStyles}
options={option}
Expand Down

0 comments on commit 4d45f37

Please sign in to comment.