Coding template request to api and other fixes

This commit is contained in:
RailTH
2024-04-19 14:44:10 +11:00
parent e5b6bc54bd
commit 36b108f1ee
6 changed files with 18 additions and 94 deletions
+4 -4
View File
@@ -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>
)
+2 -2
View File
@@ -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>