eny.space Landingpage
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(header): show dashboard link in nav when logged in

authored by

Sam Sauer and committed by
Tangled
28367459 0db6d6f0

+27 -14
+10 -5
app/components/site-header/mobile-menu.tsx
··· 23 23 24 24 <div className="mt-3 flex flex-col gap-2"> 25 25 {user ? ( 26 - <form action={signOut}> 27 - <button type="submit" className={mobileLinkClass}> 28 - Sign out 29 - </button> 30 - </form> 26 + <> 27 + <Link href="/dashboard" onClick={onClose} className={mobileLinkClass}> 28 + Dashboard 29 + </Link> 30 + <form action={signOut}> 31 + <button type="submit" className={mobileLinkClass}> 32 + Sign out 33 + </button> 34 + </form> 35 + </> 31 36 ) : ( 32 37 <> 33 38 <Link href="/login" onClick={onClose} className={mobileLinkClass}>
+17 -9
app/components/site-header/site-header.tsx
··· 122 122 </Link> 123 123 </Button> 124 124 ) : ( 125 - <form action={signOut}> 126 - <Button 127 - type="submit" 128 - size="default" 129 - className={headerCtaClass} 130 - > 131 - Sign out 132 - <ArrowUpRightIcon className="ml-0.5 size-3.5" /> 125 + <> 126 + <Button size="default" className={headerCtaClass} asChild> 127 + <Link href="/dashboard"> 128 + Dashboard 129 + <ArrowUpRightIcon className="ml-1 size-3.5" /> 130 + </Link> 133 131 </Button> 134 - </form> 132 + <form action={signOut}> 133 + <Button 134 + type="submit" 135 + size="default" 136 + className={headerCtaClass} 137 + > 138 + Sign out 139 + <ArrowUpRightIcon className="ml-0.5 size-3.5" /> 140 + </Button> 141 + </form> 142 + </> 135 143 )} 136 144 </div> 137 145