mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 22:35:45 +00:00
feat(FE): Add Zustand store for ProjectFlock management
This commit is contained in:
Vendored
+12
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user