Skip to content

Commit

Permalink
Combine the two conditional renderings
Browse files Browse the repository at this point in the history
  • Loading branch information
HeidiTao committed Nov 5, 2024
1 parent 24a5b4a commit bf44bc8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/frontend/src/components/ScheduleData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,15 @@ const ScheduleData = ({ scheduled }: ScheduleDataProps) => {
>
<div className="hidden items-center md:flex">
{open ? (
<div className="mr-1">Hide</div>
<>
<div className="mr-1">Hide</div>
<ChevronUpIcon className="h-5 w-5" />
</>
) : (
<div className="mr-1">Show</div>
)}
{open ? (
<ChevronUpIcon className="h-5 w-5" />
) : (
<ChevronDownIcon className="h-5 w-5" />
<>
<div className="mr-1">Show</div>
<ChevronDownIcon className="h-5 w-5" />
</>
)}
</div>
</FlushedButton>
Expand Down

0 comments on commit bf44bc8

Please sign in to comment.