mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 16:28:12 +00:00
fix ui
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// STUB — @/queue-management is not migrated. These placeholders let
|
||||
// performance-management's call-management widget resolve; the queue feature is
|
||||
// inert here. Replace with the real @/queue-management/hooks if it is copied.
|
||||
|
||||
/** No-op call-execution mutation matching the react-query mutation shape used. */
|
||||
export function useCallExecution() {
|
||||
return {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
mutate: (..._args: any[]) => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn("[queue-management stub] useCallExecution — not migrated.");
|
||||
},
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
mutateAsync: async (..._args: any[]) => undefined,
|
||||
isPending: false,
|
||||
isError: false,
|
||||
isSuccess: false,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
data: undefined as any,
|
||||
reset: () => {},
|
||||
};
|
||||
}
|
||||
|
||||
/** No active execution — matches the query-result shape the widget reads. */
|
||||
export function useMyActiveExecution() {
|
||||
return {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
data: null as any,
|
||||
isLoading: false,
|
||||
isError: false,
|
||||
refetch: () => {},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user