From 4d45f3790906d3c74f67a5bcf9e737c3c9e08178 Mon Sep 17 00:00:00 2001 From: Les Dyman Date: Fri, 26 Jul 2024 20:18:58 +0200 Subject: [PATCH] add all together --- src/components/Grid/Grid.tsx | 2 +- src/components/ProductCard/ProductCard.tsx | 8 ++++++-- src/shared/ui/Select/Select.tsx | 5 +---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/Grid/Grid.tsx b/src/components/Grid/Grid.tsx index 19ebc13..05c6507 100644 --- a/src/components/Grid/Grid.tsx +++ b/src/components/Grid/Grid.tsx @@ -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); diff --git a/src/components/ProductCard/ProductCard.tsx b/src/components/ProductCard/ProductCard.tsx index 2f50a27..6e87ffc 100644 --- a/src/components/ProductCard/ProductCard.tsx +++ b/src/components/ProductCard/ProductCard.tsx @@ -4,11 +4,15 @@ import { Device } from '../../types/Device'; type Props = { phone: Device; -} +}; export const ProductCard: React.FC = ({ phone }) => (
- {phone.name} + {phone.name}

{phone.name}

diff --git a/src/shared/ui/Select/Select.tsx b/src/shared/ui/Select/Select.tsx index 512ae60..df5389d 100644 --- a/src/shared/ui/Select/Select.tsx +++ b/src/shared/ui/Select/Select.tsx @@ -44,10 +44,7 @@ const customStyles: StylesConfig = { }), }; -export const SelectComponent: React.FC = ({ - option, - handleChange, -}) => ( +export const SelectComponent: React.FC = ({ option, handleChange }) => (