refactor(FE): Remove FCR-related components and types

This commit is contained in:
rstubryan
2026-02-09 14:28:02 +07:00
parent 4717330bc8
commit 35986aab56
11 changed files with 1 additions and 895 deletions
-1
View File
@@ -1,5 +1,4 @@
import { Area } from '@/types/api/master-data/area';
import { Fcr } from '@/types/api/master-data/fcr';
import { Flock } from '@/types/api/master-data/flock';
import { Location } from '@/types/api/master-data/location';
import { Kandang } from '@/types/api/master-data/kandang';
-30
View File
@@ -1,30 +0,0 @@
import { BaseMetadata } from '@/types/api/api-general';
export type BaseFcr = {
id: number;
name: string;
};
export type FcrStandard = {
id: number;
weight: number;
fcr_number: number;
mortality: number;
};
export type Fcr = BaseMetadata & BaseFcr;
export type FcrWithStandards = Fcr & {
fcr_standards: FcrStandard[];
};
export type CreateFcrPayload = {
name: string;
fcr_standards: {
weight: number;
fcr_number: number;
mortality: number;
}[];
};
export type UpdateFcrPayload = CreateFcrPayload;