Skip to content

Conversation

lindapaiste
Copy link
Collaborator

@lindapaiste lindapaiste commented Jul 16, 2023

Changes:

  • Convert Overlay from a class component to a function component.
  • Move the logic for "close on outside click"/"close on Esc" into a reusable hook useModalClose.
  • Use the useModalClose hook in components Modal, NavBar, ShareURL, and Overlay instead of repeating similar code.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

# Conflicts:
#	client/components/Nav/NavBar.jsx
#	client/modules/App/components/Overlay.jsx
#	client/modules/IDE/pages/IDEView.jsx
# Conflicts:
#	client/modules/User/components/Collection.jsx
Copy link
Collaborator

@raclim raclim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks great to me! Thanks for working on this!

@raclim raclim merged commit f725abd into processing:develop Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants