Skip to content

Commit

Permalink
fix: remove dashboard from profile
Browse files Browse the repository at this point in the history
  • Loading branch information
orig committed May 9, 2024
1 parent 78fce34 commit f56bd9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
28 changes: 12 additions & 16 deletions apps/frontend/src/components/dashboard/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,7 @@ export const DashboardNavbar = component$(() => {
</Link>
)}
</li>
{user.value && (
<>
<li class="pr-2 border-black"></li>
<li>
<Link href="/dashboard" class="btn-ghost py-2 text-sm justify-between">
Dashboard
<span class="badge badge-primary">New</span>
</Link>
{/* It uses normal redirect inorder to make the signal work as expected */}
<a href="/logout" class="btn-ghost py-2 text-sm">
Logout
</a>
</li>
<li class="pr-2 border-black"></li>
</>
)}
<li class="pr-2 border-black"></li>
<li>
<a href="https://github.com/origranot/reduced.to" target="_blank" title="GitHub" class="btn-ghost">
Github
Expand Down Expand Up @@ -105,6 +90,17 @@ export const DashboardNavbar = component$(() => {
{globalStore.theme === LIGHT_THEME ? 'Dark' : 'Light'} theme
</a>
</li>
{user.value && (
<>
<li class="pr-2 border-black"></li>
<li>
{/* It uses normal redirect inorder to make the signal work as expected */}
<a href="/logout" class="btn-ghost py-2 text-sm">
Logout
</a>
</li>
</>
)}
</ul>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ export const Profile = component$(({ user }: ProfileProps) => {
</div>
</label>
<ul tabIndex={0} class="p-2 shadow menu menu-compact dropdown-content bg-base-100 rounded-box w-48">
<li>
<Link href="/dashboard" class="justify-between">
Dashboard
<span class="badge badge-primary">New</span>
</Link>
</li>
<li>
<Link href="/logout">Logout</Link>
</li>
Expand Down

0 comments on commit f56bd9b

Please sign in to comment.