fix(#2638): remove scroe from header and move datepicker

keep-around/fdb88b04b32b9392e76795099e2ec47c9856b38b
Andrei Dekterev 3 years ago
parent 1878f9ef38
commit 1511947902
  1. 3
      src/features/HeaderFilters/components/DateFilter/styled.tsx
  2. 2
      src/features/HeaderFilters/components/DatePicker/styled.tsx
  3. 2
      src/features/MatchPage/components/FinishedMatch/index.tsx
  4. 4
      src/features/MatchPage/components/LiveMatch/index.tsx
  5. 6
      src/features/MatchPage/index.tsx
  6. 2
      src/features/MultiSourcePlayer/hooks/index.tsx

@ -73,11 +73,10 @@ type DateButtonProps = {
export const DateButton = styled(BaseButton)<DateButtonProps>` export const DateButton = styled(BaseButton)<DateButtonProps>`
position: absolute; position: absolute;
top: 0.2rem; top: 0.2rem;
right: 3.6rem; right: 4.6rem;
width: 1.3rem; width: 1.3rem;
height: 1.26rem; height: 1.26rem;
color: ${({ theme: { colors } }) => colors.dateButton}; color: ${({ theme: { colors } }) => colors.dateButton};
margin-left: 10px;
${isMobileDevice ${isMobileDevice
? css` ? css`

@ -6,7 +6,7 @@ import { BaseButton } from '../DateFilter/styled'
export const Wrapper = styled.div` export const Wrapper = styled.div`
position: absolute; position: absolute;
top: 3.5rem; top: 3.5rem;
right: 11rem; right: 12rem;
z-index: 10; z-index: 10;
${isMobileDevice ${isMobileDevice
? css` ? css`

@ -10,8 +10,6 @@ import type { MatchInfo } from 'requests/getMatchInfo'
import { MatchSidePlaylists } from 'features/MatchSidePlaylists' import { MatchSidePlaylists } from 'features/MatchSidePlaylists'
import { MultiSourcePlayer } from 'features/MultiSourcePlayer' import { MultiSourcePlayer } from 'features/MultiSourcePlayer'
import { isMobileDevice } from 'config/userAgent'
import { SettingsPopup } from '../SettingsPopup' import { SettingsPopup } from '../SettingsPopup'
import { useFinishedMatch } from './hooks' import { useFinishedMatch } from './hooks'

@ -17,14 +17,10 @@ import { MatchDescription } from '../MatchDescription'
import { MatchProfileCardMobile } from '../MatchProfileCardMobile' import { MatchProfileCardMobile } from '../MatchProfileCardMobile'
type Props = { type Props = {
// events: Events,
// profile: MatchInfo,
tournamentData: TournamentData, tournamentData: TournamentData,
} }
export const LiveMatch = ({ export const LiveMatch = ({
// events,
// profile,
tournamentData, tournamentData,
}: Props) => { }: Props) => {
const { const {

@ -11,7 +11,6 @@ import {
import { FavoritesActions } from 'requests' import { FavoritesActions } from 'requests'
import { isMobileDevice } from 'config/userAgent'
import { ProfileTypes } from 'config' import { ProfileTypes } from 'config'
import { usePageLogger } from 'hooks/usePageLogger' import { usePageLogger } from 'hooks/usePageLogger'
@ -19,7 +18,6 @@ import { usePageParams } from 'hooks/usePageParams'
import { MatchPageStore } from './store' import { MatchPageStore } from './store'
import { SubscriptionGuard } from './components/SubscriptionGuard' import { SubscriptionGuard } from './components/SubscriptionGuard'
import { MatchProfileCard } from './components/MatchProfileCard'
import { LiveMatch } from './components/LiveMatch' import { LiveMatch } from './components/LiveMatch'
import { useMatchProfile } from './hooks/useMatchProfile' import { useMatchProfile } from './hooks/useMatchProfile'
import { Wrapper } from './styled' import { Wrapper } from './styled'
@ -73,9 +71,7 @@ const MatchPageComponent = () => {
return ( return (
<PageWrapper> <PageWrapper>
<ProfileHeader color='#2B2A28' height={4.5}> <ProfileHeader color='#2B2A28' height={4.5} />
{isMobileDevice ? null : <MatchProfileCard profile={profile} />}
</ProfileHeader>
<Main> <Main>
<UserFavorites /> <UserFavorites />
<SubscriptionGuard> <SubscriptionGuard>

@ -16,8 +16,6 @@ import { useEventListener, useObjectState } from 'hooks'
import { MatchInfo } from 'requests' import { MatchInfo } from 'requests'
import { MatchInfo } from 'requests'
import { useProgressChangeHandler } from './useProgressChangeHandler' import { useProgressChangeHandler } from './useProgressChangeHandler'
import { usePlayingHandlers } from './usePlayingHandlers' import { usePlayingHandlers } from './usePlayingHandlers'
import { useVideoQuality } from './useVideoQuality' import { useVideoQuality } from './useVideoQuality'

Loading…
Cancel
Save