|
|
|
@@ -61,6 +61,7 @@ const Header = () => { |
|
|
|
const { isTablet } = useIsTablet(); |
|
|
|
const [logoClicked, setLogoClicked] = useState(false); |
|
|
|
const { t } = useTranslation(); |
|
|
|
console.log(history.location.pathname.includes("messages")); |
|
|
|
|
|
|
|
// Dont show header on auth routes(login, register, etc.) and admin routes |
|
|
|
useEffect(() => { |
|
|
|
@@ -164,11 +165,16 @@ const Header = () => { |
|
|
|
<LogoHorizontal /> |
|
|
|
</LogoContainer> |
|
|
|
|
|
|
|
<SearchInput |
|
|
|
ref={searchRef} |
|
|
|
handleSearch={handleSearch} |
|
|
|
user={user} |
|
|
|
/> |
|
|
|
{!history.location.pathname.includes("messages") && |
|
|
|
!history.location.pathname.includes("profiles") ? ( |
|
|
|
<SearchInput |
|
|
|
ref={searchRef} |
|
|
|
handleSearch={handleSearch} |
|
|
|
user={user} |
|
|
|
/> |
|
|
|
) : ( |
|
|
|
<></> |
|
|
|
)} |
|
|
|
{(routeMatches(ABOUT_PAGE) || |
|
|
|
(!user && |
|
|
|
(routeMatches(HOME_PAGE) || routeMatches(BASE_PAGE)))) && ( |