Skip to content

Commit

Permalink
Adding back in ternary for classname
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyoung3 committed Mar 12, 2024
1 parent b251e88 commit bb75e30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/node/sul-study-place/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ const SulStudyPlaceCard = ({node}: { node: NodeSulStudyPlace }) => {
{node.sulStudyBranch?.suLibraryHours &&
<StudyPlaceHours hoursId={node.sulStudyBranch.suLibraryHours}/>
}
<div className="relative flex flex-row items-start type-1 mb-20">

<div
className={`relative flex flex-row items-start type-1 ${(node?.sulStudyRoomNumber?.length > 0 ? "mb-20" : "rs-mb-2")}`}>
<MapPinIcon width={19} className="mt-01em md:mt-0 mr-12 flex-shrink-0"/>
<Link href={node.sulStudyBranch.path}
className="transition-colors hover:text-brick-dark hover:bg-black-10 hover:no-underline focus:bg-none focus:text-cardinal-red active:text-cardinal-red">
Expand Down

0 comments on commit bb75e30

Please sign in to comment.