|
|
@@ -17,10 +17,12 @@ export function Header() {
|
|
|
|
|
|
const scrollToSection = (id: string) => {
|
|
|
// Close mobile menu first for better UX
|
|
|
+ console.log(currentPage, id,3333)
|
|
|
setMobileMenuOpen(false);
|
|
|
- if (currentPage !== 'home') {
|
|
|
- navigateTo('home', id);
|
|
|
- } else {
|
|
|
+ navigateTo('home', id);
|
|
|
+ // if (currentPage !== 'home') {
|
|
|
+ // navigateTo('home', id);
|
|
|
+ // } else {
|
|
|
// Small delay to ensure mobile menu is closed
|
|
|
setTimeout(() => {
|
|
|
const element = document.getElementById(id);
|
|
|
@@ -29,7 +31,7 @@ export function Header() {
|
|
|
window.history.pushState(null, '', `#${id}`);
|
|
|
}
|
|
|
}, 50);
|
|
|
- }
|
|
|
+ // }
|
|
|
};
|
|
|
|
|
|
const handleNavigation = (page: 'faq' | 'contact') => {
|