исправил http

This commit is contained in:
Joe_Peach committed 2026-04-02 18:18:41 +03:00
1 parent cacc69a7d3
commit 941e3ea9df
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import axios from "axios"; /*import axios from "axios";
import type { Product } from "../types/product"; import type { Product } from "../types/product";
import type { Category } from "../types/categories"; import type { Category } from "../types/categories";
@@ -10,5 +10,5 @@ export const fetchCategoryProducts = async (category: string): Promise<Product[]
export const fetchCategories = async (categoryid: string): Promise<Category[]> => { export const fetchCategories = async (categoryid: string): Promise<Category[]> => {
const response = await axios.get(`https://your-api.com/api/category=${categoryid}`); const response = await axios.get(`https://your-api.com/api/category=${categoryid}`);
return response.data; return response.data;
}; };*/
@@ -3,7 +3,7 @@ import styles from "./ContactProduct.module.css";
import Button from "../Button/Button"; import Button from "../Button/Button";
import { Carousel } from "antd"; import { Carousel } from "antd";
import ModalRequestForm from "../ModalRequestForm/ModalRequestForm"; 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 image1 from "../../assets/images/mainPage/_.jpg"
import image2 from "../../assets/images/mainPage/orig.jpg" import image2 from "../../assets/images/mainPage/orig.jpg"
+1 -1
View File
@@ -62,7 +62,7 @@ const PriceLisForm: React.FC<Props> = ({ open, onClose }) => {
const sendToBackend = async (data: FormData): Promise<boolean> => { const sendToBackend = async (data: FormData): Promise<boolean> => {
try{ try{
const response = await client.post<{success: boolean}>("/api/email", { const response = await client.post<{success: boolean}>("/email", {
...data, ...data,
}) })