mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 02:00:56 +00:00
add clearance history and operations history endpoints, update UI components for history view
This commit is contained in:
@@ -61,6 +61,22 @@ export function useOpsClearanceQueue(enabled = true) {
|
||||
});
|
||||
}
|
||||
|
||||
export function useContractClearanceHistory(enabled = true) {
|
||||
return useQuery({
|
||||
queryKey: QUERY_KEYS.CONTRACTS.clearanceHistory("GL"),
|
||||
queryFn: () => contractsService.getClearanceHistory(),
|
||||
enabled,
|
||||
});
|
||||
}
|
||||
|
||||
export function useOpsClearanceHistory(enabled = true) {
|
||||
return useQuery({
|
||||
queryKey: QUERY_KEYS.CONTRACTS.clearanceHistory("OPS"),
|
||||
queryFn: () => contractsService.getOpsClearanceHistory(),
|
||||
enabled,
|
||||
});
|
||||
}
|
||||
|
||||
export function useContractMilestones(id: string | undefined) {
|
||||
return useQuery({
|
||||
queryKey: QUERY_KEYS.CONTRACTS.milestones(id ?? ""),
|
||||
|
||||
Reference in New Issue
Block a user