Skip to content

Commit

Permalink
position favorites button
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahongsf committed May 9, 2024
1 parent 0bd742d commit 16f8faf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/algolia-results/summer-course/summer-course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,19 @@ const SummerCourse = ({hit}: Props) => {
</div>
</div>

{hit.sum_course_availability &&
<div className="order-first flex flex-row items-center rs-mb-2">
<div className="order-first flex flex-row justify-between items-center rs-mb-2">
{hit.sum_course_availability &&
<div>
<CheckCircleIcon width={20} className="text-digital-green mr-2" />
{hit.sum_course_availability.toUpperCase()}
</div>
}

<div>
<FavoriteButton title={hit.title} uuid={hit.objectID} />
}
<div className="ml-auto">
<FavoriteButton title={hit.title} uuid={hit.objectID} />
</div>
</div>


<button {...buttonProps} className="group text-digital-blue no-underline mt-12">
<span className="flex gap-5 items-center w-full">
<H4 className="ml-auto mb-0 p-0 text-m0 group-hocus:underline font-semibold">{expanded ? "Collapse details" : "Show all details"}</H4>
Expand Down

0 comments on commit 16f8faf

Please sign in to comment.