Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor CozyAppScreen and Extract UI Logic to useUIState Hook #772

Closed
wants to merge 1 commit into from

Conversation

acezard
Copy link
Contributor

@acezard acezard commented May 4, 2023

This pull request aims to improve the maintainability and modularity of the CozyAppScreen component by separating its UI-related logic and state management. The main changes introduced in this PR are:

  1. Extracted UI-related logic and state management from the CozyAppScreen component into a custom hook called useUIState.
  2. Updated the useUIState hook to handle UIState updates correctly.
  3. Added TypeScript types for the useUIState hook and the CozyAppScreen component.
  4. Created a Jest test suite for the useUIState hook to ensure its functionality.
  5. Added documentation for the useUIState hook and the CozyAppScreen component to help developers understand their usage.

By extracting the UI-related logic to a separate hook, we've made the code more modular and easier to maintain. The added tests and documentation further ensure that the new code is robust and well-understood.

When connecting to a connector,
delete any account linked to this connector.
@acezard acezard requested review from Ldoppea and zatteo as code owners May 4, 2023 10:37
@acezard
Copy link
Contributor Author

acezard commented May 4, 2023

#771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant