mirror of
https://github.com/yawaflua/SusMarket.git
synced 2026-04-25 17:20:43 +03:00
Coding template request to api and other fixes
This commit is contained in:
@@ -6,17 +6,17 @@ interface ProductCardProps {
|
||||
}
|
||||
|
||||
export default function ProductCard({ product }: ProductCardProps) {
|
||||
const PriceAsString = product.price.toString();
|
||||
const priceAsString = product.price.toLocaleString('ru-RU');
|
||||
|
||||
return(
|
||||
<article className="product-article">
|
||||
<img src={product.image} alt="" className="product-article__img"/>
|
||||
<img src={product.image} alt={product.title} className="product-article__img"/>
|
||||
<h5 className="product-article__price-h5">
|
||||
<span>{PriceAsString}</span>
|
||||
<span>{priceAsString}</span>
|
||||
<span>₽</span>
|
||||
</h5>
|
||||
<h6 className="product-article__name-h6">
|
||||
{product.name}
|
||||
{product.title}
|
||||
</h6>
|
||||
</article>
|
||||
)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import React from "react";
|
||||
import ProfileAvatar from '../assets/img/profile-avatar.png';
|
||||
import ProfileAvatar from '../assets/icons/profile-avatar.svg';
|
||||
import '../ProfileStyle.scss';
|
||||
|
||||
export default function ProfileInfo() {
|
||||
return(
|
||||
<div className="profile-section__info-div">
|
||||
<div className="profile-page__info-div">
|
||||
<img src={ProfileAvatar} alt="" className="info-div__img"/>
|
||||
<span>Роман Константинов</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user