mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
refactor(FE): Refactor skeleton components to remove default columns
This commit is contained in:
@@ -9,29 +9,14 @@ const HppExpeditionClosingSkeleton = ({
|
||||
subtitle = 'Tidak ada data HPP ekspedisi untuk periode ini.',
|
||||
iconName = 'heroicons:chart-bar',
|
||||
}: {
|
||||
columns?: ColumnDef<BaseExpeditionCost>[];
|
||||
columns: ColumnDef<BaseExpeditionCost>[];
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
iconName?: string;
|
||||
}) => {
|
||||
const defaultColumns: ColumnDef<BaseExpeditionCost>[] = [
|
||||
{
|
||||
id: 'id',
|
||||
header: 'No',
|
||||
},
|
||||
{
|
||||
id: 'expedition_vendor_name',
|
||||
header: 'Nama Ekspedisi',
|
||||
},
|
||||
{
|
||||
id: 'hpp_amount',
|
||||
header: 'HPP Ekspedisi',
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<ClosingTabSkeleton<BaseExpeditionCost>
|
||||
columns={columns || defaultColumns}
|
||||
columns={columns}
|
||||
icon={
|
||||
<Icon icon={iconName} className='text-white' width={20} height={20} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user