|
|
|
|
@ -20,6 +20,7 @@ import { usePageParams } from 'hooks/usePageParams' |
|
|
|
|
import { useName } from 'features/Name' |
|
|
|
|
import { isPermittedTournament } from '../../helpers/isPermittedTournament' |
|
|
|
|
import { useProfileCard } from '../ProfileCard/hooks' |
|
|
|
|
import { useAuthStore } from '../AuthStore' |
|
|
|
|
import { useBuyMatchPopupStore } from '../BuyMatchPopup' |
|
|
|
|
import { MATCH_CONFIG } from '../BuyMatchPopup/store/hooks/useSubscriptions' |
|
|
|
|
import { prepareMatchProfile } from '../MatchPage/helpers/prepareMatchProfile' |
|
|
|
|
@ -30,6 +31,7 @@ export const useTournamentPage = () => { |
|
|
|
|
const { open: openBuyMatchPopup } = useBuyMatchPopupStore() |
|
|
|
|
const country = useName(tournamentProfile?.country || {}) |
|
|
|
|
const history = useHistory() |
|
|
|
|
const { user } = useAuthStore() |
|
|
|
|
|
|
|
|
|
const { isFavorite, toggleFavorites } = useProfileCard() |
|
|
|
|
|
|
|
|
|
@ -94,5 +96,6 @@ export const useTournamentPage = () => { |
|
|
|
|
infoItems: [country], |
|
|
|
|
profile, |
|
|
|
|
tournamentId, |
|
|
|
|
user, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|