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: topnavbar on story edit #904

Merged
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
4 changes: 3 additions & 1 deletion src/components/nav/top-nav-bar/TopNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const dashboardRoutes = [
getPath('dashboardFunding', PathName.projectId),
getPath('dashboardSettings', PathName.projectId),
getPath('dashboardStats', PathName.projectId),
getPath('dashboardStory', PathName.projectId),
sajald77 marked this conversation as resolved.
Show resolved Hide resolved
]

const routesForHidingTopNav = [
Expand Down Expand Up @@ -210,6 +211,7 @@ export const TopNavBar = () => {
queryCurrentUser()
navigate(location.pathname, { state: {} })
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state])

const handleProjectLaunchButtonPress = () => {
Expand Down Expand Up @@ -492,7 +494,7 @@ export const TopNavBar = () => {
return Boolean(routeMatch)
})
)
}, [routeMatchesForTransaparentBackground])
}, [routeMatchesForTransaparentBackground, scrollTop])

if (shouldTopNavBeHidden) {
return null
Expand Down