summaryrefslogtreecommitdiff
path: root/src/core/components/layouts/AppLayout.jsx
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2024-09-24 09:33:10 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2024-09-24 09:33:10 +0700
commitd4cb977d050a54b9daa1658b6de6e82878ca4c9b (patch)
treec58569a165721c6e60aad9c1ed9fcf8f8525b6b0 /src/core/components/layouts/AppLayout.jsx
parent1475593324319d1faf377f2d00a22a4b3caa3faa (diff)
parentcf42512eb11b1a96c99ced8d1f867aeb8c2dcbc1 (diff)
Merge branch 'release' into CR/product_detail
Diffstat (limited to 'src/core/components/layouts/AppLayout.jsx')
-rw-r--r--src/core/components/layouts/AppLayout.jsx16
1 files changed, 9 insertions, 7 deletions
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>
);
};