mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
feat(FE-316): Add delete button to ExpandedDrawerForm header
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
|
import { Icon } from '@iconify/react';
|
||||||
|
import Button from '@/components/Button';
|
||||||
|
import Tooltip from '@/components/Tooltip';
|
||||||
import DrawerHeader from '@/components/helper/drawer/DrawerHeader';
|
import DrawerHeader from '@/components/helper/drawer/DrawerHeader';
|
||||||
import { useUiStore } from '@/stores/ui/ui.store';
|
import { useUiStore } from '@/stores/ui/ui.store';
|
||||||
|
|
||||||
@@ -23,7 +26,13 @@ const ExpandedDrawerForm = () => {
|
|||||||
subtitle='Add Body Weight'
|
subtitle='Add Body Weight'
|
||||||
subtitleClassName='text-sm text-neutral'
|
subtitleClassName='text-sm text-neutral'
|
||||||
showDivider
|
showDivider
|
||||||
/>
|
>
|
||||||
|
<Button variant='link' className='p-0 text-error' onClick={handleClose}>
|
||||||
|
<Tooltip content='Hapus' position='bottom'>
|
||||||
|
<Icon icon='mdi:trash-can-outline' width={20} height={20} />
|
||||||
|
</Tooltip>
|
||||||
|
</Button>
|
||||||
|
</DrawerHeader>
|
||||||
|
|
||||||
{/* Form Section */}
|
{/* Form Section */}
|
||||||
<div className='divider mt-3'></div>
|
<div className='divider mt-3'></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user