Skip to content

Commit

Permalink
logo to profile detail, fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvyshnevska committed Dec 14, 2023
1 parent 4128b42 commit d42a244
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions FrontEnd/src/components/ProfileDetail/MainInfo/TitleInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function TitleInfo({ isAuthorized, data }) {
? data.categories.slice(0, 4)
: data.categories,
isSaved: data.is_saved,
logo: data.logo_image,
};
}, [data]);

Expand Down Expand Up @@ -120,18 +121,14 @@ function TitleInfo({ isAuthorized, data }) {
);
};

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

const logo = '';

return (
<div className={classes['title-block']}>
<div className={classes['title-block__logo']}>
{!logo ? (
{!profile.logo ? (
<DefaultLogo />
) : (
<img className={classes['logo']}
src=""
src={profile.logo}
alt="Company logo"
/>
)}
Expand Down Expand Up @@ -198,5 +195,6 @@ TitleInfo.propTypes = {
})
),
is_saved: PropTypes.bool.isRequired,
logo_image: PropTypes.string,
}).isRequired,
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
}

.logo {
width: 33.75px;
height: 33.75px;
width: 40px;
height: 40px;
flex-shrink: 0;
border-radius: 26px;
}
Expand Down

0 comments on commit d42a244

Please sign in to comment.