|
|
|
@ -36,6 +36,7 @@ import { useTabEvents } from './useTabEvents' |
|
|
|
import { useTeamsStats } from './useTeamsStats' |
|
|
|
import { useTeamsStats } from './useTeamsStats' |
|
|
|
import { useStatsTab } from './useStatsTab' |
|
|
|
import { useStatsTab } from './useStatsTab' |
|
|
|
import { usePlayersStats } from './usePlayersStats' |
|
|
|
import { usePlayersStats } from './usePlayersStats' |
|
|
|
|
|
|
|
import { useLang } from '../../../LexicsStore/hooks/useLang' |
|
|
|
|
|
|
|
|
|
|
|
type PlayingData = { |
|
|
|
type PlayingData = { |
|
|
|
player: { |
|
|
|
player: { |
|
|
|
@ -82,6 +83,7 @@ export const useMatchPage = () => { |
|
|
|
paramName: '', |
|
|
|
paramName: '', |
|
|
|
playerOrTeamName: '', |
|
|
|
playerOrTeamName: '', |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
const { lang } = useLang() |
|
|
|
|
|
|
|
|
|
|
|
const { profileId: matchId, sportType } = usePageParams() |
|
|
|
const { profileId: matchId, sportType } = usePageParams() |
|
|
|
|
|
|
|
|
|
|
|
@ -175,7 +177,10 @@ export const useMatchPage = () => { |
|
|
|
sportType, |
|
|
|
sportType, |
|
|
|
tournamentId: data?.tournament.id, |
|
|
|
tournamentId: data?.tournament.id, |
|
|
|
})) |
|
|
|
})) |
|
|
|
redirectToUrl(`${PAGES.landing}/default`) |
|
|
|
redirectToUrl(` |
|
|
|
|
|
|
|
${PAGES.landing}/default |
|
|
|
|
|
|
|
?season=${data?.season.name} |
|
|
|
|
|
|
|
&tournament=${lang === 'ru' ? data?.tournament.name_rus : data?.tournament.name_eng}`)
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|