mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
feat(FE-316): Add Uniformity result drawer and flow
This commit is contained in:
Vendored
+14
-1
@@ -1,11 +1,20 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import type { VerifyUniformityResponse } from '@/types/api/uniformity/uniformity';
|
||||
import type {
|
||||
VerifyUniformityResponse,
|
||||
CreateUniformityPayload,
|
||||
} from '@/types/api/uniformity/uniformity';
|
||||
|
||||
type MainUiSlice = {
|
||||
mainDrawerOpen: boolean;
|
||||
setMainDrawerOpen: (open: boolean) => void;
|
||||
};
|
||||
|
||||
type UniformityFormData = {
|
||||
date: string;
|
||||
project_flock_kandang_id: number;
|
||||
files: File | null;
|
||||
};
|
||||
|
||||
type DrawerUISlice = {
|
||||
triggerValidate: boolean;
|
||||
toggleValidate: () => void;
|
||||
@@ -21,6 +30,10 @@ type DrawerUISlice = {
|
||||
setIsNextStep: (v: boolean) => void;
|
||||
verifyUniformityResult: VerifyUniformityResponse | null;
|
||||
setVerifyUniformityResult: (result: VerifyUniformityResponse | null) => void;
|
||||
uniformityStep: 'preview' | 'result';
|
||||
setUniformityStep: (step: 'preview' | 'result') => void;
|
||||
uniformityFormData: UniformityFormData | null;
|
||||
setUniformityFormData: (data: UniformityFormData | null) => void;
|
||||
};
|
||||
|
||||
export type UIStore = MainUiSlice & DrawerUISlice;
|
||||
|
||||
Reference in New Issue
Block a user