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

fix: In the homepage navbar, contact us redirect is fixed #613

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading