|
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
|
import React from 'react' |
|
|
|
|
import { useRouteMatch } from 'react-router-dom' |
|
|
|
|
|
|
|
|
|
import { devices } from 'config' |
|
|
|
|
import { devices, PAGES } from 'config' |
|
|
|
|
|
|
|
|
|
import { Menu } from 'features/Menu' |
|
|
|
|
import { LanguageSelect } from 'features/LanguageSelect' |
|
|
|
|
@ -18,6 +19,7 @@ import { |
|
|
|
|
|
|
|
|
|
export const ProfileHeader = () => { |
|
|
|
|
const isMobile = useMediaQuery({ query: devices.tablet }) |
|
|
|
|
const isMatchPage = useRouteMatch(`/:sportName${PAGES.match}`) |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
isMobile |
|
|
|
|
@ -32,7 +34,7 @@ export const ProfileHeader = () => { |
|
|
|
|
|
|
|
|
|
<HeaderGroup> |
|
|
|
|
<ScoreSwitch /> |
|
|
|
|
<AvailableMatchesSwitch /> |
|
|
|
|
{!isMatchPage && <AvailableMatchesSwitch />} |
|
|
|
|
<MenuWrapper> |
|
|
|
|
<Menu /> |
|
|
|
|
</MenuWrapper> |
|
|
|
|
|