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; font-weight: 700;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
white-space: nowrap;
&:hover {
text-decoration: underline;
}
${isMobileDevice ${isMobileDevice
? css` ? css`
letter-spacing: 0.15rem; letter-spacing: 0.15rem;

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

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

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

Loading…
Cancel
Save