refactor(FE-345): Rename CostOfRevenueExpedition to HppExpedition

This commit is contained in:
rstubryan
2025-12-18 16:38:39 +07:00
parent 8dc23f83cd
commit 8ceca2cc59
3 changed files with 10 additions and 14 deletions
@@ -7,15 +7,15 @@ import Card from '@/components/Card';
import { formatCurrency } from '@/lib/helper';
import { BaseHppExpedition, BaseExpeditionCost } from '@/types/api/closing';
interface CostOfRevenueExpeditionReportTableProps {
interface HppExpeditionReportTableProps {
type?: 'detail';
initialValues?: BaseHppExpedition;
}
const CostOfRevenueExpeditionReportTable = ({
const HppExpeditionReportTable = ({
type = 'detail',
initialValues,
}: CostOfRevenueExpeditionReportTableProps) => {
}: HppExpeditionReportTableProps) => {
const costOfRevenueExpeditionData: BaseExpeditionCost[] = useMemo(() => {
return initialValues?.expedition_costs || [];
}, [initialValues]);
@@ -107,4 +107,4 @@ const CostOfRevenueExpeditionReportTable = ({
);
};
export default CostOfRevenueExpeditionReportTable;
export default HppExpeditionReportTable;