20 changed files with 493 additions and 315 deletions

No files matched your search

-9
View File
@@ -1,9 +0,0 @@
import axios from "axios";
export const API_BASE = g;/* process.env.REACT_APP_API_BASE || "";*/
const client = axios.create({
baseURL: API_BASE,
headers: { "Content-Type": "application/json" },
});
export default client;
+4 -7
View File
@@ -1,17 +1,14 @@
import { configureStore } from "@reduxjs/toolkit";
import catalogReducer from "../features/catalog/productsSlice";
import categoriesReducer from "../features/catalog/categoriesSlice"
import productsReducer from "../features/catalog/productsSlice"
import catalogReducer from "../features/catalog/catalogSlice";
export const store = configureStore({
reducer: {
categories: categoriesReducer,
products: productsReducer,
catalog: catalogReducer,
},
/*middleware: (getDefaultMiddleware) =>
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: false, // отключаем для async thunk
}),*/
}),
});
export type RootState = ReturnType<typeof store.getState>;
Whitespace-only changes.
@@ -0,0 +1,162 @@
import React from "react";
import { Modal } from "antd";
import { motion } from "framer-motion";
import { useForm } from "react-hook-form";
import * as yup from "yup";
import { yupResolver } from "@hookform/resolvers/yup";
import styles from "./ModalRequestForm.module.css";
import Button from "../Button/Button";
import axios from "axios";
// ✅ Схема валидации
const schema = yup.object().shape({
name: yup.string().required("Введите имя"),
email: yup.string().email("Некорректный Email").required("Введите Email"),
phone: yup.string().min(18, "Введите корректный номер").required("Введите номер"),
});
interface Props {
open: boolean;
onClose: () => void;
}
interface FormData {
name: string;
email: string;
phone: string;
}
const PriceLisForm: React.FC<Props> = ({ open, onClose }) => {
console.log('ModalRequestForm render, open:', open);
const {
register,
handleSubmit,
formState: { errors, isSubmitting },
reset,
} = useForm({ resolver: yupResolver(schema) });
const handlePhoneInput = (e: React.ChangeEvent<HTMLInputElement>) => {
let value = e.target.value.replace(/\D/g, '');
if (value.startsWith('7') || value.startsWith('8')) {
value = value.substring(1);
}
let formattedValue = '+7 ';
if (value.length > 0) {
formattedValue += '(' + value.substring(0, 3);
}
if (value.length > 3) {
formattedValue += ') ' + value.substring(3, 6);
}
if (value.length > 6) {
formattedValue += '-' + value.substring(6, 8);
}
if (value.length > 8) {
formattedValue += '-' + value.substring(8, 10);
}
e.target.value = formattedValue;
};
const sendToBackend = async (data: FormData): Promise<boolean> => {
try{
const response = await axios.post("/api/requests", {
...data,
source: "website-form",
timestamp: new Date().toISOString(),
})
return response.data.success;
}catch (error: any){
console.error("Error sending request:", error);
throw new Error("Не удалось отправить заявку. Попробуйте позже.");
}
};
const onSubmit = async (data: FormData) => {
try {
await sendToBackend(data);
Modal.success({
title: "Прайс-лист отправлен!",
okText: "Хорошо",
});
reset();
onClose();
} catch (error) {
Modal.error({
title: "Ошибка",
content: error instanceof Error ? error.message : "Произошла неизвестная ошибка",
okText: "Понятно",
});
}
};
return (
<Modal
open={open}
footer={null}
onCancel={onClose}
centered
width={620}
closable={!isSubmitting}
maskClosable={!isSubmitting}
>
<motion.div
initial={{ opacity: 0, y: 40 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.35 }}
className={styles.modalBox}
>
<h2 className={styles.title}>СКАЧАЙТЕ ПРАЙС_ЛИСТ</h2>
<p className={styles.subtitle}>
Заполните форму ниже, и прайс-лист будт выслан вам на почту
</p>
<form onSubmit={handleSubmit(onSubmit)} className={styles.form}>
<div className={styles.field}>
<input
className={styles.input}
placeholder="Введите имя *"
{...register("name")}
disabled={isSubmitting}
/>
{errors.name && <span className={styles.error}>{errors.name.message}</span>}
</div>
<div className={styles.field}>
<input
className={styles.input}
placeholder="Введите email *"
{...register("email")}
disabled={isSubmitting}
/>
{errors.email && <span className={styles.error}>{errors.email.message}</span>}
</div>
<div className={styles.field}>
<input
className={styles.input}
placeholder="+7 (___) ___-__-__ *"
{...register("phone")}
onInput={handlePhoneInput}
disabled={isSubmitting}
/>
{errors.phone && <span className={styles.error}>{errors.phone.message}</span>}
</div>
<Button
label={isSubmitting ? "ОТПРАВКА..." : "СКАЧАТЬ ПРАЙС-ЛИСТ"}
className={styles.button}
/>
</form>
</motion.div>
</Modal>
);
};
export default PriceLisForm;
@@ -2,6 +2,7 @@ import React from "react";
import styles from "./QuestionsBlock.module.css";
import Button from "../Button/Button";
import { PhoneOutlined } from "@ant-design/icons";
import PhoneRequest from "../../features/MainPage/PhoneRequest";
const QuestionsBlock: React.FC = () => {
@@ -39,7 +40,7 @@ const QuestionsBlock: React.FC = () => {
</p>
{/* FORM */}
<div className={styles.form}>
{/*<div className={styles.form}>
<input
type="text"
placeholder="+7 (___) ___-__-__"
@@ -49,7 +50,8 @@ const QuestionsBlock: React.FC = () => {
label="ОТПРАВИТЬ"
onClick={handleClick}
/>
</div>
</div>*/}
<PhoneRequest/>
</div>
</div>
</section>
@@ -0,0 +1,26 @@
.form {
margin-top: 20px;
display: flex;
align-items: center;
gap: 20px;
}
.input {
flex: 1;
padding: 18px 24px;
border-radius: 50px;
border: none;
font-size: 18px;
outline: none;
}
.error {
color: red;
margin-top: 10px;
}
.success {
color: green;
margin-top: 10px;
}
@@ -0,0 +1,105 @@
import React, { useState } from "react";
import axios from "axios";
import styles from "./MainPage.module.css";
import Button from "../../components/Button/Button";
interface Props {
onSend?: (phone: string) => Promise<void>;
}
const PhoneRequest: React.FC<Props> = ({ onSend }) => {
const [phone, setPhone] = useState("");
const [loading, setLoading] = useState(false);
const [success, setSuccess] = useState(false);
const [error, setError] = useState("");
// Автоформатирование "+7 (999) 999-99-99"
const formatPhone = (value: string) => {
const digits = value.replace(/\D/g, "");
let result = "+7 ";
if (digits.length > 1) result += "(" + digits.substring(1, 4);
if (digits.length >= 4) result += ") " + digits.substring(4, 7);
if (digits.length >= 7) result += "-" + digits.substring(7, 9);
if (digits.length >= 9) result += "-" + digits.substring(9, 11);
return result;
};
const handlePhoneChange = (e: React.ChangeEvent<HTMLInputElement>) => {
let v = e.target.value;
if (v.replace(/\D/g, "").length === 0) {
setPhone("");
return;
}
if (v[0] !== "+") {
v = "+7" + v;
}
setPhone(formatPhone(v));
};
const validatePhone = (p: string) => {
return p.replace(/\D/g, "").length === 11;
};
const handleSubmit = async () => {
setError("");
if (!validatePhone(phone)) {
setError("Введите корректный номер телефона");
return;
}
setLoading(true);
try {
if (onSend) {
await onSend(phone);
} else {
await axios.post("/api/contact/send-phone", { phone });
}
setSuccess(true);
setPhone("");
setTimeout(() => setSuccess(false), 3000);
} catch (e) {
setError("Ошибка отправки. Попробуйте позже.");
}
setLoading(false);
};
return (
<div className={styles.form}>
<input
className={styles.input}
placeholder="+7 (___) ___-__-__"
type="tel"
value={phone}
onChange={handlePhoneChange}
maxLength={18}
/>
<Button
label="ОТПРАВИТЬ"
onClick={handleSubmit}
/>
{/*<button
className={styles.button}
onClick={handleSubmit}
disabled={loading}
>
{loading ? "..." : "ОТПРАВИТЬ"}
</button>*/}
{error && <p className={styles.error}>{error}</p>}
{success && <p className={styles.success}>Заявка отправлена!</p>}
</div>
);
};
export default PhoneRequest;
@@ -1,20 +0,0 @@
import React from "react";
import styles from "./CategoryCards.module.css";
import { useAppSelector } from "../../app/hooks";
interface Props { onSelect?: (id:number) => void }
const CategoryCards: React.FC<Props> = ({ onSelect }) => {
const categories = useAppSelector(s => s.categories.items);
return (
<div className={styles.grid}>
{categories.map(c => (
<div key={c.id} className={styles.card} onClick={() => onSelect?.(c.id)}>
{c.image ? <img src={c.image} alt={c.name} className={styles.img} /> : <img src="/mnt/data/c9552f5e-1741-4845-8d5f-9d438f068636.png" alt={c.name} className={styles.img} />}
<div className={styles.name}>{c.name}</div>
</div>
))}
</div>
);
};
export default CategoryCards;
@@ -1,23 +0,0 @@
import React from "react";
import styles from "./CategoryCards.module.css";
import { useAppSelector } from "../../app/hooks";
interface Props {
onSelect?: (id:number) => void
}
const CategoryCards: React.FC<Props> = ({ onSelect }) => {
const categories = useAppSelector(s => s.categories.items);
return (
<div className={styles.grid}>
{categories.map(c => (
<div key={c.id} className={styles.card} onClick={() => onSelect?.(c.id)}>
{c.image ? <img src={c.image} alt={c.name} className={styles.img} /> : <img src="/mnt/data/c9552f5e-1741-4845-8d5f-9d438f068636.png" alt={c.name} className={styles.img} />}
<div className={styles.name}>{c.name}</div>
</div>
))}
</div>
);
};
export default CategoryCards;
+13 -49
View File
@@ -1,58 +1,22 @@
import { useAppSelector, useAppDispatch } from "../../app/hooks";
import { setSelectedCategory } from "./categoriesSlice";
import { setSelectedCategory } from "../store/categoriesSlice";
import styles from "./CategoriesSidebar.module.css";
import { setFilters, fetchProductsByCategory, setPage } from "./productsSlice";
import { useState } from "react";
export const CategoryFilters = () => {
export const CategoriesSidebar = () => {
const { items, selectedCategoryId } = useAppSelector(s => s.categories);
const dispatch = useAppDispatch();
const { items: cats, selectedCategoryId } = useAppSelector(s => s.categories);
const products = useAppSelector(s => s.products);
const cat = cats.find(x => x.id === selectedCategoryId);
const [local, setLocal] = useState<Record<string, (string|number)[]>>({});
const apply = () => {
dispatch(setFilters(local));
dispatch(setPage(1));
if (selectedCategoryId) dispatch(fetchProductsByCategory({ categoryId: selectedCategoryId, page: 1, limit: products.limit, filters: local }));
};
if (!cat) return null;
return (
<div className={styles.wrap}>
<h4 className={styles.title}>ПАРАМЕТРЫ</h4>
<div className={styles.blocks}>
{cat.atributes.map(attr => (
<div key={attr.id} className={styles.block}>
<div className={styles.blockTitle}>{`${attr.name}:`}</div>
<div className={styles.options}>
{attr.vals.map(v => {
const key = `attr_${attr.id}`;
const active = local[key]?.includes(v.val);
return (
<label key={v.id} className={styles.opt}>
<input type="checkbox"
checked={!!active}
onChange={() => {
const cur = local[key] ?? [];
const next = cur.includes(v.val) ? cur.filter(x => x !== v.val) : [...cur, v.val];
setLocal({ ...local, [key]: next });
}} />
{v.val}
</label>
);
})}
</div>
</div>
))}
</div>
<div className={styles.actions}>
<button className={styles.apply} onClick={apply}>Показать</button>
<button className={styles.reset} onClick={() => { setLocal({}); dispatch(setFilters({})); dispatch(setPage(1)); if (selectedCategoryId) dispatch(fetchProductsByCategory({ categoryId: selectedCategoryId, page: 1, limit: products.limit })); }}>Сбросить</button>
</div>
<div className={styles.sidebar}>
{items.map(cat => (
<div
key={cat.id}
className={`${styles.item} ${selectedCategoryId === cat.id ? styles.active : ""}`}
onClick={() => dispatch(setSelectedCategory(cat.id))}
>
{cat.name}
</div>
))}
</div>
);
};
export default CategoryFilters;
-34
View File
@@ -1,34 +0,0 @@
import React from "react";
import styles from "./Pagination.module.css";
import { useAppSelector, useAppDispatch } from "../../app/hooks";
import { setPage, fetchProductsByCategory } from "./productsSlice";
interface Props { categoryId: number }
const Pagination: React.FC<Props> = ({ categoryId }) => {
const dispatch = useAppDispatch();
const { total, page, limit } = useAppSelector(s => s.products);
const totalPages = Math.ceil(total / limit);
if (totalPages <= 1) return null;
const go = (p:number) => {
dispatch(setPage(p));
dispatch(fetchProductsByCategory({ categoryId, page: p, limit }));
window.scrollTo({ top: 200, behavior: "smooth" });
}
return (
<div className={styles.wrap}>
<button className={styles.go} onClick={() => go(1)} disabled={page===1}>В НАЧАЛО</button>
<div className={styles.pages}>
{Array.from({length: totalPages}, (_,i) => i+1).map(p => (
<button key={p} className={`${styles.page} ${p===page?styles.active:""}`} onClick={() => go(p)}>{p}</button>
))}
</div>
<button className={styles.go} onClick={() => go(totalPages)} disabled={page===totalPages}>В КОНЕЦ</button>
</div>
);
};
export default Pagination;
+5 -4
View File
@@ -1,12 +1,13 @@
import React from "react";
import type { Product } from "../../types/product";
import ProductCard from "./ProductCard";
import styles from "./Catalog.module.css";
import { useAppSelector } from "../../app/hooks";
interface Props {
products: Product[];
}
const ProductGrid: React.FC = () => {
const {items: products} = useAppSelector(p => p.products)
const ProductGrid: React.FC<Props> = ({ products }) => {
return (
<div className={styles.grid}>
{products.map((p) => (
@@ -1,39 +0,0 @@
import React, { useEffect } from "react";
import styles from "./SidebarCategories.module.css";
import { useAppDispatch, useAppSelector } from "../../app/hooks";
import { fetchCategories, setSelectedCategory } from "./categoriesSlice";
import { fetchProductsByCategory, setFilters, setPage } from "./productsSlice";
const SidebarCategories: React.FC = () => {
const dispatch = useAppDispatch();
const { items, selectedCategoryId, loading } = useAppSelector(s => s.categories);
useEffect(() => {
dispatch(fetchCategories());
}, [dispatch]);
const onClick = (catId: number) => {
dispatch(setSelectedCategory(catId));
dispatch(setFilters({})); // сброс фильтров
dispatch(setPage(1));
dispatch(fetchProductsByCategory({ categoryId: catId, page: 1, limit: 9 }));
};
return(
<aside className={styles.sidebar}>
<h3 className={styles.title}>КАТЕГОРИИ ТОВАРОВ</h3>
{loading ? <p>Загрузка...</p> : (
<ul className={styles.list}>
{items.map(cat => (
<li key={cat.id}
className={`${styles.item} ${selectedCategoryId === cat.id ? styles.active : ""}`}
onClick={() => onClick(cat.id)}>
{cat.name}
</li>
))}
</ul>
)}
</aside>
)
}
export default SidebarCategories;
@@ -0,0 +1,78 @@
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import type {PayloadAction} from "@reduxjs/toolkit";
import { fetchCategoryProducts, fetchCategories } from "../../api/catalogApi";
import type { Product } from "../../types/product";
interface CatalogState {
products: Product[];
filtered: Product[];
loading: boolean;
error: string | null;
filters: Record<string, string[]>;
currentCategory: string | null;
}
const initialState: CatalogState = {
products: [],
filtered: [],
loading: false,
error: null,
filters: {},
currentCategory: null,
};
export const getCategories = createAsyncThunk(
"catalog/getCategories",
async (categoryid: string) => {
const data = await fetchCategories(categoryid);
return data;
}
);
export const getCategoryProducts = createAsyncThunk(
"catalog/getCategoryProducts",
async (category: string) => {
const data = await fetchCategoryProducts(category);
return data;
}
);
const catalogSlice = createSlice({
name: "catalog",
initialState,
reducers: {
setFilter(state, action: PayloadAction<{ name: string; value: string }>) {
const { name, value } = action.payload;
const active = state.filters[name] || [];
state.filters[name] = active.includes(value)
? active.filter((v) => v !== value)
: [...active, value];
},
applyFilters(state) {
state.filtered = state.products.filter((p) =>
Object.entries(state.filters).every(([key, values]) =>
values.length ? values.includes(p[key as keyof Product] as string) : true
)
);
},
},
extraReducers: (builder) => {
builder
.addCase(getCategoryProducts.pending, (state) => {
state.loading = true;
state.error = null;
})
.addCase(getCategoryProducts.fulfilled, (state, action) => {
state.loading = false;
state.products = action.payload;
state.filtered = action.payload;
})
.addCase(getCategoryProducts.rejected, (state, action) => {
state.loading = false;
state.error = action.error.message || "Ошибка загрузки данных";
});
},
});
export const { setFilter, applyFilters } = catalogSlice.actions;
export default catalogSlice.reducer;
@@ -0,0 +1,69 @@
import React from "react";
import { useDispatch } from "react-redux";
import { setFilter, applyFilters } from "./catalogSlice";
import styles from "./Catalog.module.css";
import type { Category } from "../../types/categories";
import type { CategoryAtributes } from "../../types/categories";
import type { CategoryAtrVals } from "../../types/categories";
interface Props{
categories: Category[];
atributes: CategoryAtributes[]
atrVals: CategoryAtrVals[];
}
const CatalogSidebar: React.FC<Props> = ({categories, atributes, atrVals}) => {
const dispatch = useDispatch();
const handleFilterChange = (name: string, value: string) => {
dispatch(setFilter({ name, value }));
dispatch(applyFilters());
};
return (
<aside className={styles.sidebar}>
<h3>ПАРАМЕТРЫ</h3>
<div className={styles.filterGroup}>
<p>размер:</p>
{atributes.map((a) => (
<>
<p>{a.name}</p>
{atrVals.map((b) => (
<label>
<input type="checkbox" onChange={() => handleFilterChange(`${a.name}`, `${b.val}`)} /> <p>{b.val}</p>
</label>
))}
</>
))}
<label>
<input type="checkbox" onChange={() => handleFilterChange("size", "110х2,2х500")} /> 110х2,2х500
</label>
<label>
<input type="checkbox" onChange={() => handleFilterChange("size", "110х2,2х1000")} /> 110х2,2х1000
</label>
<label>
<input type="checkbox" onChange={() => handleFilterChange("size", "110х2,2х1500")} /> 110х2,2х1500
</label>
<label>
<input type="checkbox" onChange={() => handleFilterChange("size", "110х2,2х2000")} /> 110х2,2х2000
</label>
<label>
<input type="checkbox" onChange={() => handleFilterChange("size", "110х2,2х3000")} /> 110х2,2х3000
</label>
</div>
<div className={styles.filterGroup}>
<p>Форма выпуска:</p>
<label>
<input type="checkbox" onChange={() => handleFilterChange("form", "Наборы")} /> Наборы
</label>
<label>
<input type="checkbox" onChange={() => handleFilterChange("form", "Поштучно")} /> Поштучно
</label>
</div>
</aside>
);
};
export default CatalogSidebar;
@@ -1,12 +1,11 @@
import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
import type { Category } from "../../types/categories";
import axios from "axios";
export const fetchCategories = createAsyncThunk<Category[]>(
"categories/fetchCategories",
"categories/fetch",
async () => {
const res = await axios.get("/api/categories");
return res.data;
const res = await fetch("/api/categories");
return await res.json();
}
);
@@ -1,95 +0,0 @@
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import type {PayloadAction} from "@reduxjs/toolkit";
import client from "../../api/client";
import type { Product } from "../../types/product";
import axios from "axios";
interface FetchParams {
categoryId: number;
page?: number;
limit?: number;
filters?: Record<string, string | number | (string | number)[]>;
}
export const fetchProductsByCategory = createAsyncThunk(
"products/fetchByCategory",
async (params: FetchParams) => {
const { categoryId, page = 1, limit = 9, filters} = params;
const qp = new URLSearchParams();
qp.append("categoryId", String(categoryId));
qp.append("page", String(page));
qp.append("limit", String(limit));
if (filters) {
Object.keys(filters).forEach((k) => {
const v = filters[k];
if (Array.isArray(v)) qp.append(k, v.join(","));
else qp.append(k, String(v));
});
}
const res = await client.get(`/products?${qp.toString()}`);
// ожидаем { items: Product[], total: number, page: number, limit: number }
return res.data;
}
);
interface ProductsState {
items: Product[];
total: number;
page: number;
limit: number;
loading: boolean;
error: string | null;
filtersApplied: Record<string, (string|number)[]>;
}
const initialState: ProductsState = {
items: [],
total: 0,
page: 1,
limit: 9,
loading: false,
error: null,
filtersApplied: {},
};
const slice = createSlice({
name: "products",
initialState,
reducers: {
setPage(state, action: PayloadAction<number>) {
state.page = action.payload;
},
setLimit(state, action: PayloadAction<number>) {
state.limit = action.payload;
},
setFilters(state, action: PayloadAction<ProductsState["filtersApplied"]>) {
state.filtersApplied = action.payload;
},
resetProducts(state) {
state.items = [];
state.total = 0;
state.page = 1;
}
},
extraReducers: (builder) => {
builder
.addCase(fetchProductsByCategory.pending, (s) => {
s.loading = true;
s.error = null;
})
.addCase(fetchProductsByCategory.fulfilled, (s, a) => {
s.loading = false;
s.items = a.payload.items;
s.total = a.payload.total;
s.page = a.payload.page ?? s.page;
s.limit = a.payload.limit ?? s.limit;
})
.addCase(fetchProductsByCategory.rejected, (s, a) => {
s.loading = false;
s.error = a.error.message ?? "Ошибка";
});
}
});
export const { setPage, setLimit, setFilters, resetProducts } = slice.actions;
export default slice.reducer;
+22 -27
View File
@@ -1,36 +1,31 @@
import React from "react";
import styles from "./ProductsPage.module.css";
import SidebarCategories from "../../features/catalog/SidebarCategories";
import CategoryCards from "../../features/catalog/CategoryCards";
import Filters from "../../features/catalog/CategoryFilters";
import React, { useEffect } from "react";
import { useParams } from "react-router-dom";
import type { RootState } from "../../app/store";
import { getCategoryProducts } from "../../features/catalog/catalogSlice";
import CatalogSidebar from "../../features/catalog/catalogeSidebar"
import ProductGrid from "../../features/catalog/ProductGrid";
import Pagination from "../../features/catalog/Pagination";
import { useAppSelector } from "../../app/hooks";
import styles from "../../features/catalog/catalog.module.css";
import { useAppDispatch, useAppSelector } from "../../app/hooks";
const ProductsPage: React.FC = () => {
const { selectedCategoryId } = useAppSelector(s => s.categories);
const CatalogPage: React.FC = () => {
const { category } = useParams<{ category: string }>();
const dispatch = useAppDispatch()
const { loading, filtered, error } = useAppSelector((s: RootState) => s.catalog);
useEffect(() => {
if (category) dispatch(getCategoryProducts(category));
}, [category]);
return (
<div className={styles.wrapper}>
<SidebarCategories />
<div className={styles.content}>
{!selectedCategoryId ? (
<CategoryCards onSelect={(id) => {}} />
) : (
<>
<div className={styles.leftControls}>
<Filters />
</div>
<div className={styles.productsArea}>
<ProductGrid />
<Pagination categoryId={selectedCategoryId} />
</div>
</>
)}
<div className={styles.catalogWrapper}>
<CatalogSidebar />
<div className={styles.productsSection}>
{loading && <p>Загрузка...</p>}
{error && <p>Ошибка: {error}</p>}
<ProductGrid products={filtered} />
</div>
</div>
);
};
export default ProductsPage;
export default CatalogPage;
-2
View File
@@ -12,7 +12,5 @@ export interface CategoryAtributes {
export interface Category {
id: number;
name: string;
image?: string;
atributes: CategoryAtributes[];
}
+2
View File
@@ -3,4 +3,6 @@ export interface Product {
name: string;
image: string;
description: string;
size: string;
category: string;
}