Skip to content

Commit

Permalink
feat(profile): add shouldDisplayProfileImage for profile image visibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
MoisesGJ authored and alcpereira committed Nov 25, 2024
1 parent abe368a commit 6dc9916
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type Education = {

type Data = {
profile: {
shouldDisplayProfileImage: boolean;
lines: string[];
links: ProfileLinkProps[];
};
Expand All @@ -29,10 +30,16 @@ type Data = {
education: Education[];
};

const ProfileHeader = ({ lines, links }: Data["profile"]) => {
const ProfileHeader = ({
lines,
links,
shouldDisplayProfileImage,
}: Data["profile"]) => {
return (
<div className="profile__header">
<ProfileImage circular={true} border={true} />
{shouldDisplayProfileImage && (
<ProfileImage circular={true} border={true} />
)}
<div className="profile__header__lines">
{lines.map((line, index) => (
<p key={index}>{line}</p>
Expand Down

0 comments on commit 6dc9916

Please sign in to comment.