mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
chore(FE): remove unncessary code
This commit is contained in:
@@ -408,22 +408,6 @@ export function MasterKandangContent() {
|
|||||||
))}
|
))}
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
|
|
||||||
{/* <Select
|
|
||||||
value={tableFilterState.status}
|
|
||||||
onValueChange={(value) => {
|
|
||||||
updateFilter('status', value === 'all' ? '' : value);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<SelectTrigger className='w-40 border-gray-200'>
|
|
||||||
<SelectValue placeholder='Semua Status' />
|
|
||||||
</SelectTrigger>
|
|
||||||
<SelectContent>
|
|
||||||
<SelectItem value='all'>Semua Status</SelectItem>
|
|
||||||
<SelectItem value='true'>Active</SelectItem>
|
|
||||||
<SelectItem value='false'>Non Active</SelectItem>
|
|
||||||
</SelectContent>
|
|
||||||
</Select> */}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* RIGHT: Export + Add */}
|
{/* RIGHT: Export + Add */}
|
||||||
@@ -555,84 +539,6 @@ export function MasterKandangContent() {
|
|||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div>
|
|
||||||
<Label htmlFor='kandang'>
|
|
||||||
Kandang Recording <span className='text-red-500'>*</span>
|
|
||||||
</Label>
|
|
||||||
<MultiSelect
|
|
||||||
options={kandangOptions.map((k) => ({
|
|
||||||
value: String(k.value),
|
|
||||||
label: k.label,
|
|
||||||
}))}
|
|
||||||
selected={kandangForm.recording_kandangs.map((id) =>
|
|
||||||
String(id)
|
|
||||||
)}
|
|
||||||
onChange={(selected) =>
|
|
||||||
setKandangForm({
|
|
||||||
...kandangForm,
|
|
||||||
recording_kandangs: selected.map((id) => Number(id)),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
placeholder='Pilih kandang'
|
|
||||||
isLoadingMore={isLoadingKandangOptionsMore}
|
|
||||||
onLoadMore={loadMoreKandang}
|
|
||||||
className='mt-1.5'
|
|
||||||
/>
|
|
||||||
</div> */}
|
|
||||||
|
|
||||||
{/* <div>
|
|
||||||
<Label htmlFor='kandang'>
|
|
||||||
Kandang <span className='text-red-500'>*</span>
|
|
||||||
</Label>
|
|
||||||
<MultiSelect
|
|
||||||
options={locationOptions.map((k) => ({
|
|
||||||
value: String(k.value),
|
|
||||||
label: k.label,
|
|
||||||
}))}
|
|
||||||
selected={kandangForm.kandang_ids.map((id) => String(id))}
|
|
||||||
onChange={(selected) =>
|
|
||||||
setKandangForm({
|
|
||||||
...kandangForm,
|
|
||||||
kandang_ids: selected.map((id) => Number(id)),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
placeholder='Pilih kandang'
|
|
||||||
className='mt-1.5'
|
|
||||||
/>
|
|
||||||
</div> */}
|
|
||||||
{/* <div>
|
|
||||||
<Label htmlFor='status'>
|
|
||||||
Status <span className='text-red-500'>*</span>
|
|
||||||
</Label>
|
|
||||||
<Select
|
|
||||||
value={kandangForm.status}
|
|
||||||
onValueChange={(value: 'Active' | 'Non Active') =>
|
|
||||||
setKandangForm({ ...kandangForm, status: value })
|
|
||||||
}
|
|
||||||
disabled={loading}
|
|
||||||
>
|
|
||||||
<SelectTrigger id='status' className='mt-1.5'>
|
|
||||||
<SelectValue />
|
|
||||||
</SelectTrigger>
|
|
||||||
<SelectContent>
|
|
||||||
<SelectItem value='Active'>
|
|
||||||
<div className='flex items-center'>
|
|
||||||
<Badge variant='success' className='mr-2'>
|
|
||||||
Active
|
|
||||||
</Badge>
|
|
||||||
</div>
|
|
||||||
</SelectItem>
|
|
||||||
<SelectItem value='Non Active'>
|
|
||||||
<div className='flex items-center'>
|
|
||||||
<Badge variant='secondary' className='mr-2'>
|
|
||||||
Non Active
|
|
||||||
</Badge>
|
|
||||||
</div>
|
|
||||||
</SelectItem>
|
|
||||||
</SelectContent>
|
|
||||||
</Select>
|
|
||||||
</div> */}
|
|
||||||
</div>
|
</div>
|
||||||
<DialogFooter>
|
<DialogFooter>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user