mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE-316): Remove RequirePermission and update header buttons
This commit is contained in:
@@ -73,21 +73,15 @@ const UniformityPreviewForm = () => {
|
|||||||
subtitleClassName='text-sm text-neutral'
|
subtitleClassName='text-sm text-neutral'
|
||||||
showDivider={false}
|
showDivider={false}
|
||||||
>
|
>
|
||||||
<RequirePermission permissions='lti.production.uniformity.delete'>
|
<Button variant='link' className='p-0 text-error' onClick={handleClose}>
|
||||||
<Button
|
<Tooltip content='Hapus' position='left'>
|
||||||
variant='link'
|
<Icon icon='mdi:trash-can-outline' width={20} height={20} />
|
||||||
className='p-0 text-error'
|
</Tooltip>
|
||||||
onClick={handleClose}
|
</Button>
|
||||||
>
|
|
||||||
<Tooltip content='Hapus' position='bottom'>
|
|
||||||
<Icon icon='mdi:trash-can-outline' width={20} height={20} />
|
|
||||||
</Tooltip>
|
|
||||||
</Button>
|
|
||||||
</RequirePermission>
|
|
||||||
</DrawerHeader>
|
</DrawerHeader>
|
||||||
|
|
||||||
{/* Form Section */}
|
{/* Form Section */}
|
||||||
<div className='divider mt-3'></div>
|
<div className='divider mt-3.5'></div>
|
||||||
<section className='w-full px-6'>
|
<section className='w-full px-6'>
|
||||||
{verifyUniformityResult ? (
|
{verifyUniformityResult ? (
|
||||||
<div className='flex flex-col gap-4'>
|
<div className='flex flex-col gap-4'>
|
||||||
|
|||||||
@@ -118,21 +118,15 @@ const UniformityResultForm = () => {
|
|||||||
subtitleClassName='text-sm text-neutral'
|
subtitleClassName='text-sm text-neutral'
|
||||||
showDivider={false}
|
showDivider={false}
|
||||||
>
|
>
|
||||||
<RequirePermission permissions='lti.production.uniformity.delete'>
|
<Button variant='link' className='p-0 text-error' onClick={handleClose}>
|
||||||
<Button
|
<Tooltip content='Hapus' position='left'>
|
||||||
variant='link'
|
<Icon icon='mdi:trash-can-outline' width={20} height={20} />
|
||||||
className='p-0 text-error'
|
</Tooltip>
|
||||||
onClick={handleClose}
|
</Button>
|
||||||
>
|
|
||||||
<Tooltip content='Tutup' position='bottom'>
|
|
||||||
<Icon icon='mdi:close' width={20} height={20} />
|
|
||||||
</Tooltip>
|
|
||||||
</Button>
|
|
||||||
</RequirePermission>
|
|
||||||
</DrawerHeader>
|
</DrawerHeader>
|
||||||
|
|
||||||
{/* Form Section */}
|
{/* Form Section */}
|
||||||
<div className='divider mt-3'></div>
|
<div className='divider mt-3.5'></div>
|
||||||
<section className='w-full px-6'>
|
<section className='w-full px-6'>
|
||||||
{verifyUniformityResult ? (
|
{verifyUniformityResult ? (
|
||||||
<div className='flex flex-col gap-4'>
|
<div className='flex flex-col gap-4'>
|
||||||
|
|||||||
Reference in New Issue
Block a user