Skip to content

Conversation

@sanchayan721
Copy link
Contributor

@sanchayan721 sanchayan721 commented May 24, 2023

Pull Request Description

This pull request adds support for navigating to the root route ("/") when the brand logo is clicked in the header component. Previously, clicking the logo did not trigger any action.

Changes Made

  • Imported the useNavigate hook from react-router-dom.
  • Added the navigate variable using the useNavigate hook.
  • Modified the handleLogoClick function to call navigate('/') to navigate to the root route.
  • Updated the BrandLogo component to include the new functionality.

@sanchayan721 sanchayan721 requested a review from marcbon May 24, 2023 14:41
@sanchayan721 sanchayan721 marked this pull request as ready for review May 24, 2023 14:41
@marcbon marcbon merged commit 2f50e6c into develop May 29, 2023
@marcbon marcbon deleted the UN-997-click-on-u-icon-logo-in-header-not-redirecting-to-home-anymore branch May 29, 2023 14:33
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