mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
refactor(FE): Refactor skeleton components to remove default columns
This commit is contained in:
@@ -9,57 +9,14 @@ const OverheadClosingSkeleton = ({
|
||||
subtitle = 'Tidak ada data overhead untuk periode ini.',
|
||||
iconName = 'heroicons:chart-bar',
|
||||
}: {
|
||||
columns?: ColumnDef<Overhead>[];
|
||||
columns: ColumnDef<Overhead>[];
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
iconName?: string;
|
||||
}) => {
|
||||
const defaultColumns: ColumnDef<Overhead>[] = [
|
||||
{
|
||||
id: 'name',
|
||||
header: 'Nama Overhead',
|
||||
},
|
||||
{
|
||||
id: 'budget_quantity',
|
||||
header: 'Budget Pengajuan - Jumlah',
|
||||
},
|
||||
{
|
||||
id: 'budget_unit_price',
|
||||
header: 'Budget Pengajuan - Harga Satuan',
|
||||
},
|
||||
{
|
||||
id: 'budget_total_amount',
|
||||
header: 'Budget Pengajuan - Total',
|
||||
},
|
||||
{
|
||||
id: 'actual_quantity',
|
||||
header: 'Realisasi - Jumlah',
|
||||
},
|
||||
{
|
||||
id: 'actual_unit_price',
|
||||
header: 'Realisasi - Harga Satuan',
|
||||
},
|
||||
{
|
||||
id: 'actual_total_amount',
|
||||
header: 'Realisasi - Total',
|
||||
},
|
||||
{
|
||||
id: 'difference_quantity',
|
||||
header: 'Selisih - Jumlah',
|
||||
},
|
||||
{
|
||||
id: 'difference_unit_price',
|
||||
header: 'Selisih - Harga Satuan',
|
||||
},
|
||||
{
|
||||
id: 'difference_total_amount',
|
||||
header: 'Selisih - Total',
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<ClosingTabSkeleton<Overhead>
|
||||
columns={columns || defaultColumns}
|
||||
columns={columns}
|
||||
icon={
|
||||
<Icon icon={iconName} className='text-white' width={20} height={20} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user