summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-09-24 01:36:05 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-09-24 01:36:05 +0000
commitcf42512eb11b1a96c99ced8d1f867aeb8c2dcbc1 (patch)
tree802eb86425e40b8bacda6067aa797c36598a7221 /src/core
parentb7e7696d675d0c2e36364f7cbedb0483a343048d (diff)
parent4bd29979c34c1ec3b31dd384829b008eb726769c (diff)
Merged in Feature/new-register (pull request #326)
Feature/new register
Diffstat (limited to 'src/core')
-rw-r--r--src/core/components/elements/Navbar/NavbarUserDropdown.jsx31
-rw-r--r--src/core/components/layouts/AppLayout.jsx16
2 files changed, 25 insertions, 22 deletions
diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
index 42bdc12a..c0698b6e 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -1,37 +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>
- {!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;
diff --git a/src/core/components/layouts/AppLayout.jsx b/src/core/components/layouts/AppLayout.jsx
index ebbc1ad5..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 (
- <>
- <AnimationLayout>
- <AppBar title={title} />
- {children}
- </AnimationLayout>
- {withFooter && <BasicFooter />}
- </>
+ <div className='flex flex-col min-h-screen max-h-screen overflow-y-auto'>
+ <AppBar title={title} />
+ <div className='flex-grow p-4'>{children}</div>
+ {withFooter && (
+ <div className='mt-auto'>
+ <BasicFooter />
+ </div>
+ )}
+ </div>
);
};