Ott 317 double click card (#110)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Armen 5 years ago committed by GitHub
parent 82e71d880a
commit 34ceaa7339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/features/MatchCard/CardLiveHover/index.tsx
  2. 1
      src/features/MatchCard/styled.tsx

@ -1,4 +1,5 @@
import React from 'react'
import type { MouseEvent } from 'react'
import { CloseButton } from 'features/Common'
@ -15,12 +16,16 @@ type CardLiveHoverProps = {
onClose: () => void,
}
const stopProp = (e: MouseEvent<HTMLDivElement>) => {
e.stopPropagation()
}
export const CardLiveHover = ({ onClose }: CardLiveHoverProps) => (
<CardHoverWrapper>
<CardHoverWrapper onClick={onClose}>
<CardHoverInner>
<CloseButton onClick={onClose} />
<CardHoverTitle t='match_video' />
<Rows>
<Rows onClick={stopProp}>
<Row>
<MoreVideo t='watch_now' />
<MoreVideo t='watch_from_beginning' />

@ -124,6 +124,7 @@ export const TeamName = styled.span`
export const Score = styled.span``
export const Rows = styled.div`
width: fit-content;
margin-top: 20px;
`

Loading…
Cancel
Save