feat(FE): Add Zustand store for ProjectFlock management

This commit is contained in:
rstubryan
2026-02-11 13:42:56 +07:00
parent 3834982fca
commit c3dee6b292
3 changed files with 55 additions and 0 deletions
+12
View File
@@ -5,6 +5,7 @@ import type {
UniformityDetail,
VerifyUniformityResponse,
} from '@/types/api/production/uniformity';
import type { ProjectFlock } from '@/types/api/production/project-flock';
type MainUiSlice = {
mainDrawerOpen: boolean;
@@ -97,3 +98,14 @@ export type DashboardFilterSlice = {
setFilterValues: (values: DashboardFilterType) => void;
resetFilterValues: () => void;
};
export type ProjectFlockSlice = {
// State
isSuccess: boolean;
createdProjectFlock: ProjectFlock | null;
// Actions
setIsSuccess: (success: boolean) => void;
setCreatedProjectFlock: (data: ProjectFlock | null) => void;
resetProjectFlock: () => void;
};