feat(in-97): fixes

IN-146-filter-matches
Rita 3 years ago
parent bb3d202dae
commit 2705e0dc72
  1. 5
      src/components/SelectFilter/styled.tsx
  2. 20
      src/features/HomePage/components/HeaderFilters/index.tsx
  3. 2
      src/requests/getMatchInfo.tsx
  4. 1
      src/requests/getMatches/types.tsx

@ -12,7 +12,12 @@ export const ScSelectFilter = styled.div`
font-weight: 700;
align-items: center;
cursor: pointer;
white-space: nowrap;
&:hover {
text-decoration: underline;
}
${isMobileDevice
? css`
letter-spacing: 0.15rem;

@ -1,7 +1,9 @@
import { useRecoilValue } from 'recoil'
import { isLffClient } from 'config/clients'
import { ProfileTypes } from 'config/profileTypes'
import { ProfileLink } from 'features/ProfileLink'
import { SportsFilter } from 'features/SportsFilter'
import { SelectFilter } from 'components/SelectFilter'
import { useHeaderFiltersStore } from 'features/HeaderFilters'
@ -43,7 +45,7 @@ export const HeaderFilters = () => {
return (
<ScHeaderFilters>
{!isShowTournament && (
{(!isShowTournament && selectTournament) && (
<>
<ScArrow
refIcon='Arrow'
@ -51,11 +53,17 @@ export const HeaderFilters = () => {
direction={90}
onClick={() => handleClickBack()}
/>
<SelectFilter
open={false}
selectItem={selectTournament}
withArrow={false}
/>
<ProfileLink
id={selectTournament.id}
sportType={selectTournament.sportType}
profileType={ProfileTypes.TOURNAMENTS}
>
<SelectFilter
open={false}
selectItem={selectTournament}
withArrow={false}
/>
</ProfileLink>
</>
)}
{!isLffClient && isShowTournament && isSportFilterShown && <SportsFilter />}

@ -1,6 +1,7 @@
import {
DATA_URL,
PROCEDURES,
SportTypes,
} from 'config'
import { callApi } from 'helpers'
@ -44,6 +45,7 @@ export type MatchInfo = {
id: number,
name_eng: string,
name_rus: string,
sportType: SportTypes,
},
video_bounds?: VideoBounds,
youtube_link?: string,

@ -5,6 +5,7 @@ export type TournamentType = {
is_super_tournament?: boolean,
name_eng: string,
name_rus: string,
sportType: SportTypes,
}
type Team = {

Loading…
Cancel
Save