forked from Transparency/kgroad-frontend2
Fixing profile url
This commit is contained in:
parent
e9509e9396
commit
90acfefe80
@ -25,7 +25,7 @@ const ProfileAvatar: React.FC<IProfileAvatarProps> = ({
|
||||
);
|
||||
const [isDeleting, setIsDeleting] = useState<boolean>(false);
|
||||
const [message, setMessage] = useState<boolean>(false);
|
||||
const def = process.env.PROFILE_AVATAR_URLL as string;
|
||||
const def = process.env.NEXT_PUBLIC_PROFILE_AVATAR_URL as string;
|
||||
|
||||
|
||||
const [success, setSuccess] = useState<string>("");
|
||||
|
@ -141,6 +141,8 @@ const ReviewSection: React.FC<IReviewsSectionProps> = ({
|
||||
"12": "Декабрь",
|
||||
};
|
||||
|
||||
const def = process.env.NEXT_PUBLIC_PROFILE_AVATAR_URL as string;
|
||||
|
||||
return (
|
||||
<section className="review-section">
|
||||
<h3>
|
||||
@ -177,8 +179,8 @@ const ReviewSection: React.FC<IReviewsSectionProps> = ({
|
||||
<div className="review__author">
|
||||
<img
|
||||
id="author-img"
|
||||
src={review.author.image}
|
||||
alt="Author Image"
|
||||
src={review.author.image ? review.author.image : def}
|
||||
alt="Author Imagex2"
|
||||
/>
|
||||
<div className="review__header">
|
||||
<h5 className="review__author-name">
|
||||
@ -204,7 +206,7 @@ const ReviewSection: React.FC<IReviewsSectionProps> = ({
|
||||
</ul>
|
||||
) : (
|
||||
<p className="review-section__warning">
|
||||
Оставьте комментарий первым :)
|
||||
Оставьте комментарий первым
|
||||
</p>
|
||||
)}
|
||||
{loader ? (
|
||||
|
Loading…
Reference in New Issue
Block a user