From 941e3ea9df47d0edc2d6cacc57f167e6532301d1 Mon Sep 17 00:00:00 2001 From: Oleg Urin Date: Thu, 2 Apr 2026 18:18:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20http?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/catalogApi.ts | 4 ++-- src/components/ContactProduct/ContactProduct.tsx | 2 +- src/components/PriceLisForm/PriceLisForm.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/catalogApi.ts b/src/api/catalogApi.ts index e145965..8e3960d 100644 --- a/src/api/catalogApi.ts +++ b/src/api/catalogApi.ts @@ -1,4 +1,4 @@ -import axios from "axios"; +/*import axios from "axios"; import type { Product } from "../types/product"; import type { Category } from "../types/categories"; @@ -10,5 +10,5 @@ export const fetchCategoryProducts = async (category: string): Promise => { const response = await axios.get(`https://your-api.com/api/category=${categoryid}`); return response.data; -}; +};*/ diff --git a/src/components/ContactProduct/ContactProduct.tsx b/src/components/ContactProduct/ContactProduct.tsx index bfeedee..82a24e4 100644 --- a/src/components/ContactProduct/ContactProduct.tsx +++ b/src/components/ContactProduct/ContactProduct.tsx @@ -3,7 +3,7 @@ import styles from "./ContactProduct.module.css"; import Button from "../Button/Button"; import { Carousel } from "antd"; import ModalRequestForm from "../ModalRequestForm/ModalRequestForm"; -const imageUrl = "http://sprint-pro.com/images/banners/slide1/t1.png"; +const imageUrl = "https://sprint-pro.com/images/banners/slide1/t1.png"; import image1 from "../../assets/images/mainPage/_.jpg" import image2 from "../../assets/images/mainPage/orig.jpg" diff --git a/src/components/PriceLisForm/PriceLisForm.tsx b/src/components/PriceLisForm/PriceLisForm.tsx index 183925f..5771697 100644 --- a/src/components/PriceLisForm/PriceLisForm.tsx +++ b/src/components/PriceLisForm/PriceLisForm.tsx @@ -62,7 +62,7 @@ const PriceLisForm: React.FC = ({ open, onClose }) => { const sendToBackend = async (data: FormData): Promise => { try{ - const response = await client.post<{success: boolean}>("/api/email", { + const response = await client.post<{success: boolean}>("/email", { ...data, })