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(CompanyLogo): optimize navigation with Next.js Link component #560

Conversation

SinghAstra
Copy link
Contributor

  • Replace window.location.href with Next.js Link for client-side navigation
  • Improve page transition performance with built-in prefetching
  • Maintain application state during navigation
  • Remove manual click handler in favor of declarative routing

Closes #558

- Replace window.location.href with Next.js Link for client-side navigation
- Improve page transition performance with built-in prefetching
- Maintain application state during navigation
- Remove manual click handler in favor of declarative routing

Closes code100x#558
<Link href="/" className="p-2.5">
<CompanyLogo />
</Link>
<CompanyLogo />
Copy link
Collaborator

Choose a reason for hiding this comment

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

why was this removed ?

@SinghAstra
Copy link
Contributor Author

I've restored the padding to the CompanyLogo component. Let me know if you need any more changes.

@VineeTagarwaL-code VineeTagarwaL-code merged commit 4142290 into code100x:main Nov 1, 2024
1 check passed
@SinghAstra SinghAstra deleted the improvement/optimize-company-logo-navigation branch November 3, 2024 04:29
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.

✨ Improvement: optimize Company Logo navigation using Next.js Link
2 participants