From a4825bae52bf955eef6c64df7ddddccdb10d698c Mon Sep 17 00:00:00 2001 From: Helmut Wolman Date: Mon, 23 Sep 2024 16:12:58 +0200 Subject: [PATCH 1/4] Import more footballs (#222) Imported "io5/IoFootball" & "io/IoMdFootball" to make it availiable for refill --- components/MapMarkerIcon.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/MapMarkerIcon.tsx b/components/MapMarkerIcon.tsx index 885c037..5146c01 100644 --- a/components/MapMarkerIcon.tsx +++ b/components/MapMarkerIcon.tsx @@ -2,6 +2,8 @@ import { FC } from 'react' import { FaFutbol } from '@react-icons/all-files/fa/FaFutbol' import { FaLock } from '@react-icons/all-files/fa/FaLock' +import { IoMdFootball } from '@react-icons/all-files/fa/IoMdFootball' +import { IoFootball } from '@react-icons/all-files/fa/IoFootball' import { IconBaseProps, IconType } from 'react-icons' @@ -20,6 +22,12 @@ const MapMarkerIcon: FC = (props) => { case 'FaLock': Icon = FaLock break + case 'IoMdFootball': + Icon = IoMdFootball + break + case 'IoFootball': + Icon = IoFootball + break default: break } From ff2e0d5d9973c256aa0cca492527dd924d5ab3eb Mon Sep 17 00:00:00 2001 From: Navid Kalaei Date: Mon, 30 Sep 2024 15:51:33 +0400 Subject: [PATCH 2/4] fix: check for the emptiness of reviews --- components/EntityRatings.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/EntityRatings.tsx b/components/EntityRatings.tsx index 93d219a..a7eeb1f 100644 --- a/components/EntityRatings.tsx +++ b/components/EntityRatings.tsx @@ -1,5 +1,6 @@ import { FC } from 'react' import toString from 'lodash/toString' +import isEmpty from 'lodash/isEmpty' import groupBy from 'lodash/groupBy' import { Comment } from '@ant-design/compatible' import { Divider, Typography } from 'antd' @@ -93,6 +94,11 @@ const EntityRatings: FC = (props) => { { contextRatings.map((contextRating: Rating) => { + + if (isEmpty(contextRating.comments)) { + return null + } + const [rootComment, ...comments] = contextRating.comments return ( From d8713cece2c8ec2a74e7cbc5dfaac02ee2544134 Mon Sep 17 00:00:00 2001 From: Navid Kalaei Date: Mon, 30 Sep 2024 15:57:21 +0400 Subject: [PATCH 3/4] fix: correct the names of the football icons --- components/MapMarkerIcon.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/MapMarkerIcon.tsx b/components/MapMarkerIcon.tsx index 5146c01..7edcbdf 100644 --- a/components/MapMarkerIcon.tsx +++ b/components/MapMarkerIcon.tsx @@ -2,8 +2,8 @@ import { FC } from 'react' import { FaFutbol } from '@react-icons/all-files/fa/FaFutbol' import { FaLock } from '@react-icons/all-files/fa/FaLock' -import { IoMdFootball } from '@react-icons/all-files/fa/IoMdFootball' -import { IoFootball } from '@react-icons/all-files/fa/IoFootball' +import { IoMdFootball } from '@react-icons/all-files/io/IoMdFootball' +import { IoIosFootball } from '@react-icons/all-files/io/IoIosFootball' import { IconBaseProps, IconType } from 'react-icons' @@ -25,8 +25,8 @@ const MapMarkerIcon: FC = (props) => { case 'IoMdFootball': Icon = IoMdFootball break - case 'IoFootball': - Icon = IoFootball + case 'IoIosFootball': + Icon = IoIosFootball break default: break From 9bb8a764085093ba042661d44ff047a2ccbfa858 Mon Sep 17 00:00:00 2001 From: Navid Kalaei Date: Mon, 30 Sep 2024 15:58:02 +0400 Subject: [PATCH 4/4] chore: increase the version number --- consts/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consts/version.ts b/consts/version.ts index 503864c..a376f32 100644 --- a/consts/version.ts +++ b/consts/version.ts @@ -1,4 +1,4 @@ -const version = 'v1.2.9' +const version = 'v1.2.10' export default version