From 236227f2fb68a9f436acb4f67f9450067f8b3c19 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 4 Jul 2023 15:41:40 +0200 Subject: [PATCH] fix(ui): country flag in replayer --- .../app/components/shared/SessionItem/SessionItem.tsx | 2 +- frontend/app/components/ui/CountryFlag/CountryFlag.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/app/components/shared/SessionItem/SessionItem.tsx b/frontend/app/components/shared/SessionItem/SessionItem.tsx index a1312428b..e1926813d 100644 --- a/frontend/app/components/shared/SessionItem/SessionItem.tsx +++ b/frontend/app/components/shared/SessionItem/SessionItem.tsx @@ -222,7 +222,7 @@ function SessionItem(props: RouteComponentProps & Props) {
- +
diff --git a/frontend/app/components/ui/CountryFlag/CountryFlag.tsx b/frontend/app/components/ui/CountryFlag/CountryFlag.tsx index 71cc187b8..3e8e087e3 100644 --- a/frontend/app/components/ui/CountryFlag/CountryFlag.tsx +++ b/frontend/app/components/ui/CountryFlag/CountryFlag.tsx @@ -12,6 +12,7 @@ interface CountryFlagProps { style?: CSSProperties; width?: number; height?: number; + showLabel?: boolean; } @@ -22,7 +23,8 @@ const CountryFlag: FC = ({ className = '', style = {}, width = 22, - height = 15 + height = 15, + showLabel = false, }) => { const knownCountry = !!country && country !== 'UN'; const countryFlag = knownCountry ? country.toLowerCase() : ''; @@ -54,14 +56,14 @@ const CountryFlag: FC = ({ {knownCountry ? (
) : ( renderUnknownCountry )} - {renderGeoInfo} + {showLabel && renderGeoInfo}
); };