Merge pull request #21 from apuc/authentication

avatar url fix
This commit is contained in:
kavalar 2021-08-16 17:57:04 +03:00 committed by GitHub
commit 1632b4a98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ const Description = ({ onLoadMore }) => {
candidatesListArr.map((el) => (
<div className="row" key={el.id}>
<div className="col-2">
<img className={style.description__img} src={`${process.env.REACT_APP_BASE_URL}${el.photo}`} alt="" />
<img className={style.description__img} src={el.photo}} alt="" />
</div>
<div className="col-12 col-xl-6">
<h3 className={style.description__title}>
@ -84,7 +84,7 @@ const Description = ({ onLoadMore }) => {
? filteredListArr.map((el) => (
<div className="row" key={el.id}>
<div className="col-2">
<img className={style.description__img} src={`${process.env.REACT_APP_BASE_URL}${el.photo}`} alt="" />
<img className={style.description__img} src={el.photo} alt="" />
</div>
<div className="col-12 col-xl-6">
<h3 className={style.description__title}>

View File

@ -19,7 +19,7 @@ const Sidebar = ({ candidate }) => {
return (
<div className={style.candidateSidebar}>
<div className={style.candidateSidebar__info}>
<img src={`${process.env.REACT_APP_BASE_URL}${candidate.photo}`} alt="" />
<img src={candidate.photo} alt="" />
{ candidate && candidate.years_of_exp && <>
<p className={style.candidateSidebar__info__e}>Опыт работы</p>
<p className={style.candidateSidebar__info__y}>{getYearsString(candidate.years_of_exp)}</p>