diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2024-07-02 07:35:02 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2024-07-02 07:35:02 +0000 |
| commit | f7b024585b70f1bd600ba5e0d26368c532ac9723 (patch) | |
| tree | fafea81669ea00f824260ecb4a0acc9e1096499f /src/core/components/elements/Navbar/NavbarUserDropdown.jsx | |
| parent | 66d787499d0751365c1cda9d79b31e9f3c3c28bc (diff) | |
| parent | e8ad23dbad5e96dddcd6b10bdc46400c6721e80b (diff) | |
Merged in feature/generate_recomendation (pull request #148)
Feature/generate recomendation
Diffstat (limited to 'src/core/components/elements/Navbar/NavbarUserDropdown.jsx')
| -rw-r--r-- | src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx index 1851ce84..42bdc12a 100644 --- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx +++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx @@ -2,9 +2,11 @@ import { deleteAuth } from '@/core/utils/auth' import Link from '../Link/Link' import { useRouter } from 'next/router' import { signOut, useSession } from 'next-auth/react' +import useAuth from '@/core/hooks/useAuth' const NavbarUserDropdown = () => { const router = useRouter() + const atuh = useAuth() const logout = async () => { deleteAuth().then(() => { @@ -21,6 +23,9 @@ const NavbarUserDropdown = () => { <Link href='/my/invoices'>Invoice & Faktur Pajak</Link> <Link href='/my/wishlist'>Wishlist</Link> <Link href='/my/address'>Daftar Alamat</Link> + {!atuh?.external && + <Link href='/my/recomendation'>Dashboard Recomendation</Link> + } <button type='button' onClick={logout}> Keluar Akun </button> |
