Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
muliswilliam committed Sep 24, 2023
1 parent c345655 commit 10ab479
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export function MainNav({ className, showDashboardMenu }: Props) {
Encrypted chat
</Button>
<nav className={cn('hidden md:flex items-center', className)}>
{userId && (
{userId ? (
<MenuItem href="/dashboard/messages" label="Dashboard" />
)}
) : null}
</nav>
{!userId ? (
<div className="flex items-center justify-between gap-6">
Expand All @@ -115,7 +115,7 @@ export function MainNav({ className, showDashboardMenu }: Props) {
<ModeToggle />
</div>
</div>
{showDashboardMenu && (
{showDashboardMenu ? (
<div className="-mb-0.5 flex h-12 items-center justify-start space-x-2 overflow-x-auto scrollbar-hide">
{dashboardMenuItems.map((item) => (
<DashboardMenuItem
Expand All @@ -125,7 +125,7 @@ export function MainNav({ className, showDashboardMenu }: Props) {
/>
))}
</div>
)}
): null}
</div>
</div>
</div>
Expand Down

0 comments on commit 10ab479

Please sign in to comment.