mirror of
https://github.com/yawaflua/SusMarket.git
synced 2025-12-09 20:19:31 +02:00
Coding rendering categories and products by API request, sorting of products by categories, reset sorting by clicking heading 1 'SusMarket' & other fixes
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
import React from "react";
|
||
import { Link } from "react-router-dom";
|
||
import '../ProfileStyle.scss';
|
||
import ProfileInfo from "./ProfileInfo";
|
||
import ProductCard from "./ProductCard";
|
||
|
||
export default function ProfilePurchases() {
|
||
return(
|
||
<section className="purchases-section">
|
||
<nav className="profile-page__nav">
|
||
<Link to="/profile" className="profile-link">
|
||
Мои заказы
|
||
</Link>
|
||
<Link to="purchases" className="profile-link active">
|
||
Мои покупки
|
||
</Link>
|
||
</nav>
|
||
<div className="purchases-container">
|
||
<ProfileInfo />
|
||
<div className="purchases-div">
|
||
{/* <ProductCard ProductImg={ProductImage} ProductName="Абеме" Price={150}/>
|
||
<ProductCard ProductImg={ProductImage} ProductName="Абеме" Price={1234523453}/>
|
||
<ProductCard ProductImg={ProductImage} ProductName="Абеме" Price={10}/> */}
|
||
</div>
|
||
</div>
|
||
</section>
|
||
)
|
||
} |