mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Add more icons to event icon types (#12507)
This commit is contained in:
parent
e5dc476c1e
commit
f2c46408c4
@ -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} />;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user