|
|
|
|
@ -1,9 +1,10 @@ |
|
|
|
|
import React from 'react' |
|
|
|
|
import type { MouseEvent } from 'react' |
|
|
|
|
import React from 'react' |
|
|
|
|
|
|
|
|
|
import { Link } from 'react-router-dom' |
|
|
|
|
|
|
|
|
|
import { CloseButton } from 'features/Common' |
|
|
|
|
import { OutsideClick } from 'features/OutsideClick' |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
CardHoverInner, |
|
|
|
|
@ -29,26 +30,28 @@ export const CardLiveHover = ({ |
|
|
|
|
onClose, |
|
|
|
|
sportName, |
|
|
|
|
}: CardLiveHoverProps) => ( |
|
|
|
|
<CardHoverWrapper onClick={onClose}> |
|
|
|
|
<CardHoverInner> |
|
|
|
|
<CloseButton onClick={onClose} /> |
|
|
|
|
<CardHoverTitle t='match_video' /> |
|
|
|
|
<Rows onClick={stopProp}> |
|
|
|
|
<Row> |
|
|
|
|
<Link to={`/${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_now' /> |
|
|
|
|
</Link> |
|
|
|
|
<Link to={`/${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_from_beginning' /> |
|
|
|
|
</Link> |
|
|
|
|
</Row> |
|
|
|
|
<OutsideClick onClick={onClose}> |
|
|
|
|
<CardHoverWrapper onClick={onClose}> |
|
|
|
|
<CardHoverInner> |
|
|
|
|
<CloseButton onClick={onClose} /> |
|
|
|
|
<CardHoverTitle t='match_video' /> |
|
|
|
|
<Rows onClick={stopProp}> |
|
|
|
|
<Row> |
|
|
|
|
<Link to={`/${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_now' /> |
|
|
|
|
</Link> |
|
|
|
|
<Link to={`/${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_from_beginning' /> |
|
|
|
|
</Link> |
|
|
|
|
</Row> |
|
|
|
|
|
|
|
|
|
<Row> |
|
|
|
|
<Link to={`/${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_from_last_pause' /> |
|
|
|
|
</Link> |
|
|
|
|
</Row> |
|
|
|
|
</Rows> |
|
|
|
|
</CardHoverInner> |
|
|
|
|
</CardHoverWrapper> |
|
|
|
|
<Row> |
|
|
|
|
<Link to={`/${sportName}/matches/${id}`}> |
|
|
|
|
<MoreVideo t='watch_from_last_pause' /> |
|
|
|
|
</Link> |
|
|
|
|
</Row> |
|
|
|
|
</Rows> |
|
|
|
|
</CardHoverInner> |
|
|
|
|
</CardHoverWrapper> |
|
|
|
|
</OutsideClick> |
|
|
|
|
) |
|
|
|
|
|