Skip to content

Commit

Permalink
logo to profile list
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvyshnevska committed Dec 14, 2023
1 parent 43b2576 commit a46430f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FrontEnd/src/components/profileList/ProfileCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function ProfileCard({ isAuthorized, data }) {
: data.categories,
isSaved: data.is_saved,
commonInfo: data.common_info,
logo: data.logo_image,
};
}, [data]);

Expand Down Expand Up @@ -105,16 +106,14 @@ export default function ProfileCard({ isAuthorized, data }) {
);
};

// TODO: add logo from db once it's implemented on the server side

return (
<div className={css['company-card']}>
<Link className={css['company-card__link']} to={`/profile-detail/${profile.id}`}>
<div className={css['logo-box']}>
<img
className={css.logo}
src={`${process.env.REACT_APP_PUBLIC_URL}/companies-logos/1.png`}
alt=""
src={profile.logo || `${process.env.REACT_APP_PUBLIC_URL}/companies-logos/default_logo.png`}
alt="Company logo"
/>
</div>
<div className={css.content}>
Expand Down Expand Up @@ -164,5 +163,6 @@ ProfileCard.propTypes = {
),
common_info: PropTypes.string,
is_saved: PropTypes.bool.isRequired,
logo_image: PropTypes.string,
}).isRequired,
};

0 comments on commit a46430f

Please sign in to comment.