From 3dc26efc067799c1cf5492f412538c906ecfe5b1 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 11 Sep 2024 10:09:49 +0700 Subject: ubah posisi profil saya pada dropdown --- .../elements/Navbar/NavbarUserDropdown.jsx | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/core/components/elements') 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 (
+ Profil Saya Daftar Quotation Daftar Transaksi Daftar Pengiriman Invoice & Faktur Pajak Wishlist Daftar Alamat - Profil Saya - {!atuh?.external && + {!atuh?.external && ( Dashboard Recomendation - } + )}
- ) -} + ); +}; -export default NavbarUserDropdown +export default NavbarUserDropdown; -- cgit v1.2.3