From 519fafc964e1644b6a5f9f4bdc80ea8c893f4971 Mon Sep 17 00:00:00 2001 From: Rakov Roman Date: Tue, 27 Sep 2022 16:37:05 +0300 Subject: [PATCH] fix(#2857): replaced sport types icons --- src/components/SportIcon/SportIcon.tsx | 2 +- .../components/CollapseTournament/index.tsx | 4 ++-- .../components/TournamentMobile/index.tsx | 6 ++++- src/features/TournamentSubtitle/index.tsx | 6 ++++- src/features/TournamentSubtitle/styled.tsx | 1 + src/libs/index.ts | 1 + src/libs/objects/Basketball.tsx | 23 +++++++----------- src/libs/objects/Boxing.tsx | 4 ++-- src/libs/objects/Football.tsx | 14 +++++++---- src/libs/objects/Handball.tsx | 14 +++++++---- src/libs/objects/Hockey.tsx | 14 +++++++---- src/libs/objects/Streetball.tsx | 18 ++++++++++++++ src/libs/objects/Volleyball.tsx | 24 +++++++++---------- 13 files changed, 82 insertions(+), 49 deletions(-) create mode 100644 src/libs/objects/Streetball.tsx diff --git a/src/components/SportIcon/SportIcon.tsx b/src/components/SportIcon/SportIcon.tsx index 7fea369a..31519dc3 100644 --- a/src/components/SportIcon/SportIcon.tsx +++ b/src/components/SportIcon/SportIcon.tsx @@ -38,7 +38,7 @@ const sportIcons = { }, streetball: { color: '#f1903b', - icon: 'Basketball', + icon: 'Streetball', }, volleyball: { color: '#2D8B8A', diff --git a/src/features/TournamentList/components/CollapseTournament/index.tsx b/src/features/TournamentList/components/CollapseTournament/index.tsx index 34cd5a8f..b446301e 100644 --- a/src/features/TournamentList/components/CollapseTournament/index.tsx +++ b/src/features/TournamentList/components/CollapseTournament/index.tsx @@ -69,13 +69,13 @@ export const CollapseTournament = ({ - + {isFavorite && ( - + )} diff --git a/src/features/TournamentList/components/TournamentMobile/index.tsx b/src/features/TournamentList/components/TournamentMobile/index.tsx index f045bcd3..674ccce5 100644 --- a/src/features/TournamentList/components/TournamentMobile/index.tsx +++ b/src/features/TournamentList/components/TournamentMobile/index.tsx @@ -48,7 +48,11 @@ export const TournamentMobile = ({ {!isLffClient && ( - + diff --git a/src/features/TournamentSubtitle/index.tsx b/src/features/TournamentSubtitle/index.tsx index 1191ef24..cc78c458 100644 --- a/src/features/TournamentSubtitle/index.tsx +++ b/src/features/TournamentSubtitle/index.tsx @@ -7,6 +7,7 @@ import { useUserFavoritesStore } from 'features/UserFavorites/store' import { ProfileTypes, SportTypes } from 'config' import { isLffClient } from 'config/clients' +import { isMobileDevice } from 'config/userAgent' import { usePageParams } from 'hooks/usePageParams' @@ -40,7 +41,10 @@ export const TournamentSubtitle = ({ {!isLffClient && ( - + )} diff --git a/src/features/TournamentSubtitle/styled.tsx b/src/features/TournamentSubtitle/styled.tsx index 253034f9..64a50160 100644 --- a/src/features/TournamentSubtitle/styled.tsx +++ b/src/features/TournamentSubtitle/styled.tsx @@ -6,6 +6,7 @@ import { ProfileLink } from 'features/ProfileLink' export const Wrapper = styled.div` display: flex; + align-items: center; ` export const CountryFlag = styled.img` diff --git a/src/libs/index.ts b/src/libs/index.ts index 744da87e..568d5cd4 100644 --- a/src/libs/index.ts +++ b/src/libs/index.ts @@ -17,3 +17,4 @@ export { Dollar } from './objects/Dollar' export { Close } from './objects/Close' export { PoweredByInstat } from './objects/PoweredByInstat' export { Info } from './objects/Info' +export { Streetball } from './objects/Streetball' diff --git a/src/libs/objects/Basketball.tsx b/src/libs/objects/Basketball.tsx index 930edabd..cbcac85c 100644 --- a/src/libs/objects/Basketball.tsx +++ b/src/libs/objects/Basketball.tsx @@ -1,22 +1,17 @@ export const Basketball = () => ( - - - + ) diff --git a/src/libs/objects/Boxing.tsx b/src/libs/objects/Boxing.tsx index 466e4259..2422d671 100644 --- a/src/libs/objects/Boxing.tsx +++ b/src/libs/objects/Boxing.tsx @@ -1,7 +1,7 @@ export const Boxing = () => ( ( + ) diff --git a/src/libs/objects/Handball.tsx b/src/libs/objects/Handball.tsx index ccb79d4f..4736b558 100644 --- a/src/libs/objects/Handball.tsx +++ b/src/libs/objects/Handball.tsx @@ -1,13 +1,17 @@ export const Handball = () => ( + ) diff --git a/src/libs/objects/Hockey.tsx b/src/libs/objects/Hockey.tsx index eef0fc57..73455368 100644 --- a/src/libs/objects/Hockey.tsx +++ b/src/libs/objects/Hockey.tsx @@ -1,13 +1,17 @@ export const Hockey = () => ( + ) diff --git a/src/libs/objects/Streetball.tsx b/src/libs/objects/Streetball.tsx new file mode 100644 index 00000000..ee828a8d --- /dev/null +++ b/src/libs/objects/Streetball.tsx @@ -0,0 +1,18 @@ +export const Streetball = () => ( + + + + + +) diff --git a/src/libs/objects/Volleyball.tsx b/src/libs/objects/Volleyball.tsx index e0edcaa5..19470747 100644 --- a/src/libs/objects/Volleyball.tsx +++ b/src/libs/objects/Volleyball.tsx @@ -1,19 +1,17 @@ export const Volleyball = () => ( - - - - - - - - - + + )