Refactor Container Copy dropdowns with integrated state management (#2279)

This commit is contained in:
BChoudhury-ms
2025-12-15 12:25:05 +05:30
committed by GitHub
parent d67c1a0464
commit bc7e8a71ca
22 changed files with 955 additions and 2707 deletions

View File

@@ -39,6 +39,7 @@ export function useCopyJobNavigation() {
const [state, dispatch] = useReducer(navigationReducer, { screenHistory: [SCREEN_KEYS.SelectAccount] });
const handlePrevious = useCallback(() => {
setContextError(null);
dispatch({ type: "PREVIOUS" });
}, [dispatch]);