From 741da9ddd86d745504a406a49ab35302d2affe2f Mon Sep 17 00:00:00 2001 From: Mirlan Date: Wed, 22 Sep 2021 14:18:37 +0600 Subject: [PATCH] fix(1658): match sideblock styles (#499) --- .../LiveMatchSidePlaylists/index.tsx | 1 - .../components/TabWatch/index.tsx | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/features/MatchPage/components/LiveMatchSidePlaylists/index.tsx b/src/features/MatchPage/components/LiveMatchSidePlaylists/index.tsx index df75b71a..471ea777 100644 --- a/src/features/MatchPage/components/LiveMatchSidePlaylists/index.tsx +++ b/src/features/MatchPage/components/LiveMatchSidePlaylists/index.tsx @@ -8,7 +8,6 @@ import { Tab, TabsGroup } from 'features/Common' const Wrapper = styled.div`` const Container = styled.div` - width: 288px; margin-left: 14px; margin-right: 18px; diff --git a/src/features/MatchSidePlaylists/components/TabWatch/index.tsx b/src/features/MatchSidePlaylists/components/TabWatch/index.tsx index 9158ebfe..506d9481 100644 --- a/src/features/MatchSidePlaylists/components/TabWatch/index.tsx +++ b/src/features/MatchSidePlaylists/components/TabWatch/index.tsx @@ -1,5 +1,6 @@ import { Fragment } from 'react' +import isEmpty from 'lodash/isEmpty' import size from 'lodash/size' import type { PlaylistOption, Playlists } from 'features/MatchPage/types' @@ -40,14 +41,13 @@ export const TabWatch = ({ onSelect={onSelect} /> - {size(playlists.players.team1) - && ( - - )} + {!isEmpty(playlists.players.team1) && ( + + )} )