Skip to content

Commit

Permalink
Merge pull request #1 from Harshit7492/fix/contactus
Browse files Browse the repository at this point in the history
bug: Fixed the contact rediecting issue
  • Loading branch information
Harshit7492 authored Jan 9, 2024
2 parents c5f45df + 6aaaaef commit d785f9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/common/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,16 +356,16 @@ const Navbar = () => {
onClick={() => {
router.push('/');
setTimeout(() => {
const contacts = document.getElementById('contactus');
const contacts = document.getElementById('contact_us');
if (contacts) contacts.scrollIntoView();
//onClick();
}, 10);
}}
className={`${styles.lnk} ${contactActive ? styles.active : ''} ${
navbar && styles.nav_active
className={`${styles.lnk} ${contactActive ? styles.active : ' '} ${
navbar && styles.nav_active
}`}
>
Contact Us
Contact Us
</a>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export default function Home() {
</div>

{/* <!-- Contact Form --> */}
<h2 id='contactus' className={styles.grabh2}>
Get In Touch With Us
<h2 id='contact_us' className={styles.grabh2}>
Get In Touch With Us
</h2>
<form onSubmit={handleSubmit} aria-label='Contact form'>
<div className={styles.cntfrm}>
Expand Down

0 comments on commit d785f9a

Please sign in to comment.