diff --git a/src/components/product-card/index.tsx b/src/components/product-card/index.tsx index ed9da7cd..6274aae4 100644 --- a/src/components/product-card/index.tsx +++ b/src/components/product-card/index.tsx @@ -5,11 +5,10 @@ type ProductCardProps = { cardName: string; price: string; weight: string; - buttonText: string; cardImage: string; category?: string; idCard?: number; - checkboxControl?: { checked: boolean; onChange: () => void }; + checkboxControl?: { checked: boolean; onChange: () => void }; }; const ProductCard = ({ diff --git a/src/components/product-card/product-card.stories.tsx b/src/components/product-card/product-card.stories.tsx index c4578a62..7aeb4801 100644 --- a/src/components/product-card/product-card.stories.tsx +++ b/src/components/product-card/product-card.stories.tsx @@ -25,7 +25,6 @@ export const Default: Story = { cardName: 'Манго Египет', price: '80 руб.', weight: '1кг', - buttonText: 'В корзину', }, render: (args) => ( diff --git a/src/pages/profile/profile-addresses/index.tsx b/src/pages/profile/profile-addresses/index.tsx index 0c8aa6e9..3bafac6f 100644 --- a/src/pages/profile/profile-addresses/index.tsx +++ b/src/pages/profile/profile-addresses/index.tsx @@ -52,7 +52,7 @@ export default function ProfileAddresses() { const deleteAddress = (index: number) => { return () => { - const filteredAddresses = addresses.filter((addressObj, i) => i !== index); + const filteredAddresses = addresses.filter((_, i) => i !== index); console.log(filteredAddresses, 'Delete request...'); // setAddresses(filteredAddresses); }; diff --git a/src/pages/profile/profile-favorites/index.tsx b/src/pages/profile/profile-favorites/index.tsx index 3f79a697..f9624f5e 100644 --- a/src/pages/profile/profile-favorites/index.tsx +++ b/src/pages/profile/profile-favorites/index.tsx @@ -7,7 +7,7 @@ import { Link } from 'react-router-dom'; type Product = { name: string; - price: number; + price: string; amount: string; id: number; photo: string;