mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: remove export button
This commit is contained in:
@@ -283,10 +283,6 @@ export function MasterEmployeeContent() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleExport = (format: string) => {
|
|
||||||
toast.success(`Data berhasil diekspor ke ${format}`);
|
|
||||||
};
|
|
||||||
|
|
||||||
if (isLoadingEmployees && !employees) {
|
if (isLoadingEmployees && !employees) {
|
||||||
return (
|
return (
|
||||||
<div className='min-h-screen'>
|
<div className='min-h-screen'>
|
||||||
@@ -390,27 +386,6 @@ export function MasterEmployeeContent() {
|
|||||||
|
|
||||||
{/* RIGHT: Export + Add */}
|
{/* RIGHT: Export + Add */}
|
||||||
<div className='flex items-center gap-2 flex-wrap'>
|
<div className='flex items-center gap-2 flex-wrap'>
|
||||||
<DropdownMenu>
|
|
||||||
<DropdownMenuTrigger asChild>
|
|
||||||
<Button
|
|
||||||
variant='outline'
|
|
||||||
className='border-gray-200 text-gray-700'
|
|
||||||
>
|
|
||||||
<Download className='w-4 h-4 mr-2' />
|
|
||||||
Export
|
|
||||||
<ChevronDown className='w-4 h-4 ml-2' />
|
|
||||||
</Button>
|
|
||||||
</DropdownMenuTrigger>
|
|
||||||
<DropdownMenuContent align='end'>
|
|
||||||
<DropdownMenuItem onClick={() => handleExport('CSV')}>
|
|
||||||
Export CSV
|
|
||||||
</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem onClick={() => handleExport('Excel')}>
|
|
||||||
Export Excel
|
|
||||||
</DropdownMenuItem>
|
|
||||||
</DropdownMenuContent>
|
|
||||||
</DropdownMenu>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
onClick={handleAdd}
|
onClick={handleAdd}
|
||||||
className='bg-[#0069e0] hover:bg-[#0052b3] text-white'
|
className='bg-[#0069e0] hover:bg-[#0052b3] text-white'
|
||||||
|
|||||||
Reference in New Issue
Block a user