From 40bb4765d4682d07fe2816aabf2b50464f333d34 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 12 Oct 2024 07:37:22 -0600 Subject: [PATCH] Add support for more icons (#14299) --- web/src/utils/iconUtil.tsx | 49 +++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/web/src/utils/iconUtil.tsx b/web/src/utils/iconUtil.tsx index f5ab70c9e..e3c1f5508 100644 --- a/web/src/utils/iconUtil.tsx +++ b/web/src/utils/iconUtil.tsx @@ -7,16 +7,31 @@ import { FaCarSide, FaCat, FaCheckCircle, + FaDhl, FaDog, FaFedex, FaFire, FaFootballBall, + FaHockeyPuck, + FaHorse, FaMotorcycle, FaMouse, + FaRegTrashAlt, + FaUmbrella, FaUps, FaUsps, } from "react-icons/fa"; -import { GiDeer, GiHummingbird, GiPolarBear, GiSailboat } from "react-icons/gi"; +import { + GiDeer, + GiFox, + GiGoat, + GiHummingbird, + GiPolarBear, + GiPostStamp, + GiRabbit, + GiRaccoonHead, + GiSailboat, +} from "react-icons/gi"; import { LuBox, LuLassoSelect } from "react-icons/lu"; import * as LuIcons from "react-icons/lu"; import { MdRecordVoiceOver } from "react-icons/md"; @@ -53,8 +68,12 @@ export function getIconForLabel(label: string, className?: string) { case "bark": case "dog": return ; - case "fire_alarm": - return ; + case "fox": + return ; + case "goat": + return ; + case "horse": + return ; case "motorcycle": return ; case "mouse": @@ -63,8 +82,20 @@ export function getIconForLabel(label: string, className?: string) { return ; case "person": return ; + case "rabbit": + return ; + case "raccoon": + return ; + case "robot_lawnmower": + return ; case "sports_ball": return ; + case "squirrel": + return ; + case "umbrella": + return ; + case "waste_bin": + return ; // audio case "crying": case "laughter": @@ -72,9 +103,21 @@ export function getIconForLabel(label: string, className?: string) { case "speech": case "yell": return ; + case "fire_alarm": + return ; // sub labels case "amazon": return ; + case "an_post": + case "dpd": + case "gls": + case "nzpost": + case "postnl": + case "postnord": + case "purolator": + return ; + case "dhl": + return ; case "fedex": return ; case "ups":