From bc277fa65d0a9cd4ec19ad7bb9076ac5b6afc546 Mon Sep 17 00:00:00 2001 From: Mirlan Date: Wed, 30 Dec 2020 15:07:53 +0600 Subject: [PATCH] Ott 697 popup imprv (#268) * Ott 697 part 1 (#266) * fix(591): request lexics * fix(591): style and bug fixes * fix(591): match page style and bug fixes (#267) --- src/config/lexics/indexLexics.tsx | 4 -- src/features/Common/Checkbox/Icon.tsx | 3 ++ .../MatchPage/helpers/buildChapters.tsx | 2 +- .../MatchPage/helpers/buildPlaylists.tsx | 8 ++-- src/features/MatchPage/hooks/useMatchPage.tsx | 7 +++ src/features/MatchPage/index.tsx | 2 + src/features/MatchPage/styled.tsx | 2 +- src/features/MatchPage/types.tsx | 2 +- .../components/MatchPlaylist/index.tsx | 4 ++ .../components/PlaylistButton/index.tsx | 20 +++++++- .../components/PlaylistPage/index.tsx | 12 +++-- .../components/SettingsPage/index.tsx | 2 +- src/features/MatchPopup/index.tsx | 7 ++- src/features/MatchPopup/store/hooks/index.tsx | 48 ++++++++++++------- .../store/hooks/usePlaylistLexics.tsx | 21 ++++++++ .../store/hooks/useSettingsState.tsx | 5 -- src/features/MatchPopup/styled.tsx | 13 +++-- src/features/MatchSidePlaylists/index.tsx | 12 +++++ src/requests/getMatchPlaylists.tsx | 24 +++++++--- src/requests/getPlayerPlaylists.tsx | 7 ++- 20 files changed, 155 insertions(+), 50 deletions(-) create mode 100644 src/features/MatchPopup/store/hooks/usePlaylistLexics.tsx create mode 100644 src/features/MatchSidePlaylists/index.tsx diff --git a/src/config/lexics/indexLexics.tsx b/src/config/lexics/indexLexics.tsx index 1aef1460..0ea341ab 100644 --- a/src/config/lexics/indexLexics.tsx +++ b/src/config/lexics/indexLexics.tsx @@ -5,10 +5,6 @@ const matchPopupLexics = { episode_duration: 13410, go_back_to_match: 13405, match_interviews: 13031, - match_playlist_ball_in_play: 2489, - match_playlist_full_match: 13028, - match_playlist_goals: 3559, - match_playlist_highlights: 13033, match_settings: 13490, playlist_format: 13406, playlist_format_all_actions: 13408, diff --git a/src/features/Common/Checkbox/Icon.tsx b/src/features/Common/Checkbox/Icon.tsx index 40632c80..c0dde2a0 100644 --- a/src/features/Common/Checkbox/Icon.tsx +++ b/src/features/Common/Checkbox/Icon.tsx @@ -15,7 +15,10 @@ export const svgColorStyles = css` ` export const CheckboxSvg = styled.svg` + min-width: 24px; + min-height: 24px; margin-right: 22px; + align-self: flex-start; ${svgColorStyles} ` diff --git a/src/features/MatchPage/helpers/buildChapters.tsx b/src/features/MatchPage/helpers/buildChapters.tsx index 091d7b0d..5c71354f 100644 --- a/src/features/MatchPage/helpers/buildChapters.tsx +++ b/src/features/MatchPage/helpers/buildChapters.tsx @@ -112,7 +112,7 @@ const getPlaylistChapters = (videos: Array