Merge pull request #85 from SlimusMinus/fix_btn_nahodka_logo
All checks were successful
deploy-frontend / deploy (push) Successful in 41s

fixed push on button NakhodkaLanding on sideBar
This commit is contained in:
SlimusMinus
2026-10-12 00:28:33 +03:00
committed by GitHub
5 changed files with 3 additions and 6 deletions

View File

@@ -21,7 +21,6 @@ export default function Sidebar({
activeNav, activeNav,
onClose, onClose,
onNavClick, onNavClick,
onLogoClick,
isAuthenticated, isAuthenticated,
onLoginClick, onLoginClick,
onRulesClick, onRulesClick,
@@ -80,7 +79,7 @@ export default function Sidebar({
type="button" type="button"
className="f-sb-logo-btn" className="f-sb-logo-btn"
onClick={() => { onClick={() => {
onLogoClick?.(); navigate("/");
onClose(); onClose();
}} }}
title={t('nav.home')} title={t('nav.home')}

View File

@@ -3,7 +3,7 @@
"name": "Nakhodka" "name": "Nakhodka"
}, },
"nav": { "nav": {
"home": "Home", "home": "All ads",
"myAds": "My ads", "myAds": "My ads",
"items": "Items", "items": "Items",
"pets": "Pets", "pets": "Pets",

View File

@@ -3,7 +3,7 @@
"name": "Находка" "name": "Находка"
}, },
"nav": { "nav": {
"home": "Главная", "home": "Все объявления",
"myAds": "Мои объявления", "myAds": "Мои объявления",
"items": "Вещи", "items": "Вещи",
"pets": "Питомцы", "pets": "Питомцы",

View File

@@ -309,7 +309,6 @@ export default function AdminAdsPage() {
activeNav={isPostsTab ? "admin-posts" : isPostsRejectedTab ? "admin-posts-rejected" : "admin-campaigns"} activeNav={isPostsTab ? "admin-posts" : isPostsRejectedTab ? "admin-posts-rejected" : "admin-campaigns"}
onClose={() => setSidebarOpen(false)} onClose={() => setSidebarOpen(false)}
onNavClick={() => navigate("/feed")} onNavClick={() => navigate("/feed")}
onLogoClick={() => navigate("/feed")}
isAuthenticated={isAuthenticated} isAuthenticated={isAuthenticated}
onLoginClick={() => modals.open("auth")} onLoginClick={() => modals.open("auth")}
onRulesClick={() => modals.open("rules")} onRulesClick={() => modals.open("rules")}

View File

@@ -413,7 +413,6 @@ export default function MainFeed() {
open={sidebarOpen} open={sidebarOpen}
activeNav={activeNav} activeNav={activeNav}
onClose={() => setSidebarOpen(false)} onClose={() => setSidebarOpen(false)}
onLogoClick={handleHomeClick}
onNavClick={(key: string) => { onNavClick={(key: string) => {
setActiveNav(key); setActiveNav(key);
setSearchQuery(""); setSearchQuery("");