feat(FE-316): Save and preview uniformity verification

This commit is contained in:
rstubryan
2025-12-27 21:00:07 +07:00
parent ec8ae7561d
commit 549a710a8d
6 changed files with 88 additions and 6 deletions
+4
View File
@@ -23,3 +23,7 @@ export type VerifyUniformityPayload = {
project_flock_kandang_id: number;
files: File;
};
export type VerifyUniformityResponse = {
body_weights: number[];
};
+3
View File
@@ -1,4 +1,5 @@
import type { ReactNode } from 'react';
import type { VerifyUniformityResponse } from '@/types/api/uniformity/uniformity';
type MainUiSlice = {
mainDrawerOpen: boolean;
@@ -18,6 +19,8 @@ type DrawerUISlice = {
setExpandedDrawerContent: (content: ReactNode) => void;
isNextStep: boolean;
setIsNextStep: (v: boolean) => void;
verifyUniformityResult: VerifyUniformityResponse | null;
setVerifyUniformityResult: (result: VerifyUniformityResponse | null) => void;
};
export type UIStore = MainUiSlice & DrawerUISlice;