Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Sep 7, 2022

https://topcoder.atlassian.net/browse/TCA-400

Toggle course outline in fcc page when:

  • click on a lesson to navigate to that lesson
  • click outside of the sidebar

@vas3a vas3a self-assigned this Sep 7, 2022
Copy link
Contributor

@brooketopcoder brooketopcoder left a comment

Choose a reason for hiding this comment

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

Looks good. Just one comment...

}, [props.isOpen])

useEffect(() => {
const handleClickOutside: (ev: MouseEvent) => void = (ev: MouseEvent) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer we use the existing useClickOutside hook. Is there a reason we can't use it? If so, maybe we extend it to do what we need?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hey @brooketopcoder ! yes, totally. I was looking for it but I didn't find it where I was searching. I replaced the code and looks much cleaner now. thanks!

Copy link
Contributor

@brooketopcoder brooketopcoder left a comment

Choose a reason for hiding this comment

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

Perfecto--thanks, @vas3a

@vas3a vas3a merged commit 8a26d92 into dev Sep 7, 2022
@vas3a vas3a deleted the TCA-400_update-fcc-sidebar-behavior branch September 7, 2022 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants