Add more icons to event icon types (#12507)

This commit is contained in:
Nicolas Mowen 2024-07-18 15:11:05 -06:00 committed by GitHub
parent e5dc476c1e
commit f2c46408c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,9 +10,13 @@ import {
FaDog, FaDog,
FaFedex, FaFedex,
FaFire, FaFire,
FaFootballBall,
FaMotorcycle,
FaMouse,
FaUps, FaUps,
FaUsps,
} from "react-icons/fa"; } from "react-icons/fa";
import { GiDeer, GiHummingbird } from "react-icons/gi"; import { GiDeer, GiHummingbird, GiPolarBear, GiSailboat } from "react-icons/gi";
import { LuBox, LuLassoSelect } from "react-icons/lu"; import { LuBox, LuLassoSelect } from "react-icons/lu";
import * as LuIcons from "react-icons/lu"; import * as LuIcons from "react-icons/lu";
import { MdRecordVoiceOver } from "react-icons/md"; import { MdRecordVoiceOver } from "react-icons/md";
@ -27,10 +31,15 @@ export function getIconForLabel(label: string, className?: string) {
} }
switch (label) { switch (label) {
// objects
case "bear":
return <GiPolarBear key={label} className={className} />;
case "bicycle": case "bicycle":
return <FaBicycle key={label} className={className} />; return <FaBicycle key={label} className={className} />;
case "bird": case "bird":
return <GiHummingbird key={label} className={className} />; return <GiHummingbird key={label} className={className} />;
case "boat":
return <GiSailboat key={label} className={className} />;
case "bus": case "bus":
return <FaBus key={label} className={className} />; return <FaBus key={label} className={className} />;
case "car": case "car":
@ -46,10 +55,16 @@ export function getIconForLabel(label: string, className?: string) {
return <FaDog key={label} className={className} />; return <FaDog key={label} className={className} />;
case "fire_alarm": case "fire_alarm":
return <FaFire key={label} className={className} />; return <FaFire key={label} className={className} />;
case "motorcycle":
return <FaMotorcycle key={label} className={className} />;
case "mouse":
return <FaMouse key={label} className={className} />;
case "package": case "package":
return <LuBox key={label} className={className} />; return <LuBox key={label} className={className} />;
case "person": case "person":
return <BsPersonWalking key={label} className={className} />; return <BsPersonWalking key={label} className={className} />;
case "sports_ball":
return <FaFootballBall key={label} className={className} />;
// audio // audio
case "crying": case "crying":
case "laughter": case "laughter":
@ -64,6 +79,8 @@ export function getIconForLabel(label: string, className?: string) {
return <FaFedex key={label} className={className} />; return <FaFedex key={label} className={className} />;
case "ups": case "ups":
return <FaUps key={label} className={className} />; return <FaUps key={label} className={className} />;
case "usps":
return <FaUsps key={label} className={className} />;
default: default:
return <LuLassoSelect key={label} className={className} />; return <LuLassoSelect key={label} className={className} />;
} }