From dca47f25b9ea7744b5fa233deaa03e7775f4e4c6 Mon Sep 17 00:00:00 2001 From: Armen <35077035+Armen9393@users.noreply.github.com> Date: Tue, 1 Sep 2020 14:26:17 +0300 Subject: [PATCH] feat(ott-350): redirect to matches page (#117) --- src/features/MatchCard/CardFinished/index.tsx | 12 ++++++++-- .../MatchCard/CardFinishedHover/index.tsx | 14 ++++++++++-- src/features/MatchCard/CardLive/index.tsx | 11 ++++++++-- .../MatchCard/CardLiveHover/index.tsx | 22 +++++++++++++++---- 4 files changed, 49 insertions(+), 10 deletions(-) diff --git a/src/features/MatchCard/CardFinished/index.tsx b/src/features/MatchCard/CardFinished/index.tsx index f6ded47a..dd77f780 100644 --- a/src/features/MatchCard/CardFinished/index.tsx +++ b/src/features/MatchCard/CardFinished/index.tsx @@ -33,7 +33,7 @@ type CardFinishedProps = { export const CardFinished = ({ match: { - date, + id, preview, sportName, sportType, @@ -52,7 +52,15 @@ export const CardFinished = ({ showScore, } = useCard() - if (isOpen) return + if (isOpen) { + return ( + + ) + } return ( void, + sportName: string, } -export const CardFinishedHover = ({ onClose }: CardFinishedHoverProps) => ( +export const CardFinishedHover = ({ + id, + onClose, + sportName, +}: CardFinishedHoverProps) => ( - + + + diff --git a/src/features/MatchCard/CardLive/index.tsx b/src/features/MatchCard/CardLive/index.tsx index 9c086aaa..deb61471 100644 --- a/src/features/MatchCard/CardLive/index.tsx +++ b/src/features/MatchCard/CardLive/index.tsx @@ -33,7 +33,6 @@ type CardLiveProps = { export const CardLive = ({ match: { - date, id, preview, sportName, @@ -53,7 +52,15 @@ export const CardLive = ({ showScore, } = useCard() - if (isOpen) return + if (isOpen) { + return ( + + ) + } return ( void, + sportName: string, } const stopProp = (e: MouseEvent) => { e.stopPropagation() } -export const CardLiveHover = ({ onClose }: CardLiveHoverProps) => ( +export const CardLiveHover = ({ + id, + onClose, + sportName, +}: CardLiveHoverProps) => ( - - + + + + + + - + + +