feat(FE): create floation actions button

This commit is contained in:
randy-ar
2025-12-02 12:37:03 +07:00
parent 6b5838b5aa
commit 9eba5ffeca
3 changed files with 184 additions and 3 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ export default function ProjectFlockLayout({
return (
<>
{/* List page always rendered */}
<div>
<div className='min-h-sceen w-full relative'>
<ProjectFlockTable
refresh={() => !isOpen && router.push('/production/project-flock')}
/>
@@ -48,7 +48,7 @@ export default function ProjectFlockLayout({
setOpen={(v) => {
if (!v) router.push('/production/project-flock');
}}
closeOnBackdropClick={false}
closeOnBackdropClick={isDetail ? true : false}
onBackdropClick={handleBackdropClick}
variant='right'
sidebarContent={isOpen && <div className='p-4'>{children}</div>}