Skip to content

Commit

Permalink
Refactor description conditional for team page
Browse files Browse the repository at this point in the history
  • Loading branch information
lhvy committed Jan 17, 2024
1 parent 8759eb7 commit df01c82
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/team/ExecCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ const ExecCard = ({ data, colour }) => {
<div className="col-md-4">
<div className="card-person">
<div className={`${styles["card-person-style" + colour]} limit`}>
{description === "" || description === undefined ? null : (
<div className={styles["card-person-animation"]} />
{description && (
<div>
<div className={styles["card-person-animation"]} />
<p className={styles["person-text"]}>{description}</p>
</div>
)}
<Image alt={name} src={image} className={styles["card-img-top"]} />
<p className={styles["person-text"]}>{description}</p>
</div>
</div>
<div className="card-body text-center pt-2 pb-4">
Expand Down

0 comments on commit df01c82

Please sign in to comment.