fix(ott-2790): fixed pr

keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Сергей Шитиков 3 years ago committed by Gitea
parent d168ae7317
commit 4df71019c4
  1. 12
      src/features/MatchSidePlaylists/components/PlayButton/index.tsx

@ -20,13 +20,21 @@ type Props = {
onClick: () => void,
}
type TLiveBtn = {
isActive?: boolean,
}
const Duration = styled(Title)`
margin-left: 10px;
font-weight: normal;
`
export const LiveBtn = styled(LiveBtnBase)`
export const LiveBtn = styled(LiveBtnBase)<TLiveBtn>`
margin-left: 10px;
background-color: ${({ isActive }) => (isActive
? 'transparent'
: '#CC0000')
};
`
export const PlayButton = ({
@ -50,7 +58,7 @@ export const PlayButton = ({
{!isUndefined(duration) && (
(live && !duration)
? (
<LiveBtn>
<LiveBtn isActive={active}>
<T9n t='live' />
</LiveBtn>
)

Loading…
Cancel
Save