Skip to content

Commit

Permalink
Fix shown sections bug (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte authored May 28, 2024
1 parent 6287128 commit ed9b587
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/Shutdowns/ShutdownContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ export const ShutdownCards: React.FunctionComponent<ShutdownCardsProps> = ({
</div>
</div>
)}
<div className="md:my-8 my-4">
<h3 className="md:text-xl mb-4 font-medium dark:text-white">Completed Shutdowns ✅</h3>
<div className="w-full overflow-y-hidden grid md:grid-cols-3 gap-4">
{groupedAndSortedShutdowns.completed}
{!!groupedAndSortedShutdowns.completed.length && (
<div className="md:my-8 my-4">
<h3 className="md:text-xl mb-4 font-medium dark:text-white">Completed Shutdowns ✅</h3>
<div className="w-full overflow-y-hidden grid md:grid-cols-3 gap-4">
{groupedAndSortedShutdowns.completed}
</div>
</div>
</div>
)}
</div>
);
};

0 comments on commit ed9b587

Please sign in to comment.