diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-10 16:01:33 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-10 16:01:33 +0700 |
| commit | 88e982cb95ec49fe96452317b6b06000a6700d70 (patch) | |
| tree | c7baacc98d80a1224a221f4292803448d1f8bc76 /src/core | |
| parent | d1f93cea2efbbc045fbe9c5df4d94dea57c4a9b1 (diff) | |
<iman> update tampilan ga bisa di scrool
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/components/layouts/AppLayout.jsx | 16 |
1 files changed, 9 insertions, 7 deletions
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 ( - <> - <AnimationLayout> - <AppBar title={title} /> - {children} - </AnimationLayout> - <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> ); }; |
