refactor(FE): Remove unused imports and redundant code

This commit is contained in:
rstubryan
2026-02-20 14:17:26 +07:00
parent de0f9ae985
commit 1f2f3acebb
90 changed files with 222 additions and 474 deletions
@@ -1,15 +1,7 @@
'use client';
import { useState } from 'react';
import {
Plus,
Download,
ChevronDown,
MoreVertical,
Pencil,
Trash2,
Search,
} from 'lucide-react';
import { Plus, MoreVertical, Pencil, Trash2, Search } from 'lucide-react';
import { Card, CardContent } from '@/figma-make/components/base/card';
import { Button } from '@/figma-make/components/base/button';
import { Label } from '@/figma-make/components/base/label';
@@ -93,11 +85,16 @@ export function MasterEmployeeContent() {
keepPreviousData: true,
}
);
const { options: kandangOptions, isLoadingOptions: isLoadingKandangs } =
useSelect(KandangApi.basePath, 'id', 'name', 'search', {
const { options: kandangOptions } = useSelect(
KandangApi.basePath,
'id',
'name',
'search',
{
page: '1',
limit: '100',
});
}
);
const [showModal, setShowModal] = useState(false);
const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);
@@ -373,7 +370,7 @@ export function MasterEmployeeContent() {
updateFilter('status', value === 'all' ? '' : value);
}}
>
<SelectTrigger className='w-[160px] border-gray-200'>
<SelectTrigger className='w-40 border-gray-200'>
<SelectValue placeholder='Semua Status' />
</SelectTrigger>
<SelectContent>