Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEN-2041]: fix auto-fill indicator for destinations (#2018)
This pull request includes several updates to the `frontend/webapp/containers/main/destinations` directory, focusing on enhancing the `DestinationFormBody` component and improving the export structure of the `DestinationsList` component. The most important changes include adding new hooks and logic to handle auto-filling of dynamic fields, modifying the component structure for consistency, and updating export statements. Enhancements to `DestinationFormBody` component: * Added `useEffect` and `useRef` hooks to handle the auto-filling check for dynamic fields and set the `autoFilled` state accordingly. [[1]](diffhunk://#diff-dfeb6d04b2e764197b17375e8347405ed7c67a7d706a34b6a2eaf09582e3b52cL1-R5) [[2]](diffhunk://#diff-dfeb6d04b2e764197b17375e8347405ed7c67a7d706a34b6a2eaf09582e3b52cL33-R63) * Modified the `DestinationFormBody` component to be a functional component using arrow function syntax for consistency. [[1]](diffhunk://#diff-dfeb6d04b2e764197b17375e8347405ed7c67a7d706a34b6a2eaf09582e3b52cL33-R63) [[2]](diffhunk://#diff-dfeb6d04b2e764197b17375e8347405ed7c67a7d706a34b6a2eaf09582e3b52cL155-R182) * Updated the rendering logic to display a notification note when the connection details are auto-filled. Improvements to `DestinationsList` component: * Changed the `DestinationsList` component to be exported directly instead of using a separate export statement. [[1]](diffhunk://#diff-0fc3893b30022c16fec91cb64d38fa36de0dc4e8eabbbbb7a3b94701b45a4badL37-R37) [[2]](diffhunk://#diff-0fc3893b30022c16fec91cb64d38fa36de0dc4e8eabbbbb7a3b94701b45a4badL75-L76)
- Loading branch information