Replace useless ternarys with logical ANDs

This commit is contained in:
Isaac Wise
2024-07-22 22:34:36 -05:00
parent 2264abd384
commit e79b98d3b0
25 changed files with 195 additions and 212 deletions
+2 -2
View File
@@ -34,9 +34,9 @@ export default function MainLayout({ children }: Props) {
return (
<div className="flex" data-testid="dashboard-wrapper">
{showAnnouncement ? (
{showAnnouncement && (
<Announcement toggleAnnouncementBar={toggleAnnouncementBar} />
) : undefined}
)}
<div className="hidden lg:block">
<Sidebar className={`fixed top-0`} />
</div>