|
|
|
|
@ -5,6 +5,7 @@ import isEmpty from 'lodash/isEmpty' |
|
|
|
|
import { getSportColor } from 'helpers/getSportColor' |
|
|
|
|
|
|
|
|
|
import { SportName } from 'features/Common/SportName' |
|
|
|
|
import { useScoreStore } from 'features/ToggleScore' |
|
|
|
|
|
|
|
|
|
import { useSportNameParam } from 'hooks/useSportNameParam' |
|
|
|
|
import { useMatchPage } from '../hooks' |
|
|
|
|
@ -28,6 +29,7 @@ export const MatchProfileCard = () => { |
|
|
|
|
} = useMatchPage() |
|
|
|
|
|
|
|
|
|
const { sportName, sportType } = useSportNameParam() |
|
|
|
|
const { isHidden } = useScoreStore() |
|
|
|
|
|
|
|
|
|
const { team1, team2 } = matchProfile || {} |
|
|
|
|
|
|
|
|
|
@ -41,9 +43,11 @@ export const MatchProfileCard = () => { |
|
|
|
|
<Teams> |
|
|
|
|
{team1Name} <Dash /> {team2Name} |
|
|
|
|
</Teams> |
|
|
|
|
<Score> |
|
|
|
|
{team1?.score} : {team2?.score} |
|
|
|
|
</Score> |
|
|
|
|
{!isHidden && ( |
|
|
|
|
<Score> |
|
|
|
|
{team1?.score} : {team2?.score} |
|
|
|
|
</Score> |
|
|
|
|
)} |
|
|
|
|
<Tournament> |
|
|
|
|
<SportName |
|
|
|
|
color={color} |
|
|
|
|
|