Skip to content
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
7 changes: 2 additions & 5 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const Footer = () => {

// TODO this looks like a bad way of doing it, I think it should be re-factored
const shouldHideOnDesktop = isProjectDetails || isCreateProject || isNotificationsPage || isSettingsPage
// on mobile show footer only when user is logged-out, so only root page is available
const shouldHideOnMobile = window.location.pathname !== '/'

return (
<MediaQuery minWidth={SCREEN_BREAKPOINT_MD}>
Expand All @@ -39,9 +37,8 @@ const Footer = () => {
</div>
)
} else {
return (shouldHideOnMobile ? null :
{/*<FooterV2 />*/}
)
{/* never show footer on mobile */}
return null
}
}}
</MediaQuery>
Expand Down