Skip to content

Commit

Permalink
fix border
Browse files Browse the repository at this point in the history
  • Loading branch information
karimhossenbux committed Mar 25, 2024
1 parent 3783a40 commit f10b294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ const Item = (props) => {
}
};

console.log(props.endDate);

return (
<div
className={`mb-4 pl-4 border-l-4 border-${
props.endDate !== '' ? 'gray-200' : 'green-100'
!props.endDate ? 'green-200' : 'gray-100'
} dark:border-${props.endDate ? 'gray-600' : 'green-200'}`}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
Expand Down
2 changes: 1 addition & 1 deletion components/Work.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Work = ({ items, setHighlightedSkills }) => {
location={item.company}
link={item.website}
startDate={item.startDate}
endDate={item.endDate}
endDate={item?.endDate || null}
content={item.summary}
skills={item.skills}
setHighlightedSkills={setHighlightedSkills}
Expand Down

0 comments on commit f10b294

Please sign in to comment.