From a75f8676f71e83082088544349ecbf9b4fd80b61 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Thu, 29 Aug 2024 13:37:53 +0700 Subject: add my profile in dropdown --- src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/components') diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx index 42bdc12a..2a345341 100644 --- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx +++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx @@ -23,6 +23,7 @@ const NavbarUserDropdown = () => { Invoice & Faktur Pajak Wishlist Daftar Alamat + Profil Saya {!atuh?.external && Dashboard Recomendation } -- cgit v1.2.3 From d1f93cea2efbbc045fbe9c5df4d94dea57c4a9b1 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Tue, 10 Sep 2024 14:03:45 +0700 Subject: updaet bug no footer --- src/core/components/layouts/AppLayout.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/components') diff --git a/src/core/components/layouts/AppLayout.jsx b/src/core/components/layouts/AppLayout.jsx index ebbc1ad5..c72c1be5 100644 --- a/src/core/components/layouts/AppLayout.jsx +++ b/src/core/components/layouts/AppLayout.jsx @@ -15,7 +15,7 @@ const AppLayout = ({ children, title, withFooter = true }) => { {children} - {withFooter && } + ); }; -- cgit v1.2.3 From 88e982cb95ec49fe96452317b6b06000a6700d70 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Tue, 10 Sep 2024 16:01:33 +0700 Subject: update tampilan ga bisa di scrool --- src/core/components/layouts/AppLayout.jsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/core/components') diff --git a/src/core/components/layouts/AppLayout.jsx b/src/core/components/layouts/AppLayout.jsx index c72c1be5..ec61ca06 100644 --- a/src/core/components/layouts/AppLayout.jsx +++ b/src/core/components/layouts/AppLayout.jsx @@ -10,13 +10,15 @@ const BasicFooter = dynamic(() => import('../elements/Footer/BasicFooter'), { const AppLayout = ({ children, title, withFooter = true }) => { return ( - <> - - - {children} - - - +
+ +
{children}
+ {withFooter && ( +
+ +
+ )} +
); }; -- cgit v1.2.3 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') 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