fixed open sideBar on map
This commit is contained in:
@@ -264,7 +264,10 @@ export default function MainFeed() {
|
|||||||
open={sidebarOpen}
|
open={sidebarOpen}
|
||||||
activeNav={activeNav}
|
activeNav={activeNav}
|
||||||
onClose={() => setSidebarOpen(false)}
|
onClose={() => setSidebarOpen(false)}
|
||||||
onNavClick={setActiveNav}
|
onNavClick={(key) => {
|
||||||
|
setActiveNav(key);
|
||||||
|
if (isMapView || isSearchView) navigate("/feed");
|
||||||
|
}}
|
||||||
isAuthenticated={isAuthenticated}
|
isAuthenticated={isAuthenticated}
|
||||||
onLoginClick={() => modals.open("auth")}
|
onLoginClick={() => modals.open("auth")}
|
||||||
onRulesClick={() => modals.open("rules")}
|
onRulesClick={() => modals.open("rules")}
|
||||||
@@ -331,7 +334,10 @@ export default function MainFeed() {
|
|||||||
isAuthenticated={isAuthenticated}
|
isAuthenticated={isAuthenticated}
|
||||||
onProfileClick={() => modals.open("profile")}
|
onProfileClick={() => modals.open("profile")}
|
||||||
onLoginClick={() => modals.open("auth")}
|
onLoginClick={() => modals.open("auth")}
|
||||||
onNavClick={setActiveNav}
|
onNavClick={(key) => {
|
||||||
|
setActiveNav(key);
|
||||||
|
if (isMapView || isSearchView) navigate("/feed");
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user