summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-09-11 03:14:22 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-09-11 03:14:22 +0000
commit7f2c4404adcde5fbaea32e895542d2c313bd507b (patch)
tree27299ccf0a0babef8bfbb72db20e274797ba76ec /src
parent34f33b1cba1e4fbb6faacc151a3b59a1ba221d60 (diff)
parent3dc26efc067799c1cf5492f412538c906ecfe5b1 (diff)
Merged in Feature/new-register (pull request #304)
Feature/new register
Diffstat (limited to 'src')
-rw-r--r--src/core/components/elements/Navbar/NavbarUserDropdown.jsx32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
index 2a345341..c0698b6e 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -1,38 +1,38 @@
-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'
+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 router = useRouter();
+ const atuh = useAuth();
const logout = async () => {
deleteAuth().then(() => {
- router.push('/login')
- })
- }
+ router.push('/login');
+ });
+ };
return (
<div className='navbar-user-dropdown-wrapper'>
<div className='navbar-user-dropdown'>
+ <Link href='/my/profile'>Profil Saya</Link>
<Link href='/my/quotations'>Daftar Quotation</Link>
<Link href='/my/transactions'>Daftar Transaksi</Link>
<Link href='/my/shipments'>Daftar Pengiriman</Link>
<Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
<Link href='/my/wishlist'>Wishlist</Link>
<Link href='/my/address'>Daftar Alamat</Link>
- <Link href='/my/profile'>Profil Saya</Link>
- {!atuh?.external &&
+ {!atuh?.external && (
<Link href='/my/recomendation'>Dashboard Recomendation</Link>
- }
+ )}
<button type='button' onClick={logout}>
Keluar Akun
</button>
</div>
</div>
- )
-}
+ );
+};
-export default NavbarUserDropdown
+export default NavbarUserDropdown;