Skip to content

Commit

Permalink
Refactor mobile nav component and add profile link
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCoder00 committed Oct 5, 2024
1 parent 9235b78 commit f1327aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/layouts/mobile-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ export function MobileNav() {
</SheetTitle>
<ul className="flex flex-col gap-2 text-sm justify-items-start px-4 py-2">
{session.status !== 'loading' && session.data?.user && (
<div className="w-full flex items-center">
<div
className="w-full flex items-center"
onClick={() => {
router.push(APP_PATHS.PROFILE);
}}
>
{session.data?.user.role === ADMIN_ROLE ? (
<div className="w-12 h-12 rounded-full flex items-center justify-center border-none ouline-none dark:bg-[#0F172A] dark:text-white bg-slate-200">
<p>HS</p>
Expand Down

0 comments on commit f1327aa

Please sign in to comment.