* Tweak bird icon and fix _ in object name

* Apply to all capitalization
This commit is contained in:
Nicolas Mowen 2024-11-05 08:29:07 -07:00 committed by GitHub
parent 29ea7c53f2
commit 404807c697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,6 @@ import {
GiDeer,
GiFox,
GiGoat,
GiHummingbird,
GiPolarBear,
GiPostStamp,
GiRabbit,
@ -36,6 +35,7 @@ import {
import { LuBox, LuLassoSelect } from "react-icons/lu";
import * as LuIcons from "react-icons/lu";
import { MdRecordVoiceOver } from "react-icons/md";
import { PiBirdFill } from "react-icons/pi";
export function getAttributeLabels(config?: FrigateConfig) {
if (!config) {
@ -66,7 +66,7 @@ export function getIconForLabel(label: string, className?: string) {
case "bicycle":
return <FaBicycle key={label} className={className} />;
case "bird":
return <GiHummingbird key={label} className={className} />;
return <PiBirdFill key={label} className={className} />;
case "boat":
return <GiSailboat key={label} className={className} />;
case "bus":

View File

@ -4,6 +4,7 @@ export const capitalizeFirstLetter = (text: string): string => {
export const capitalizeAll = (text: string): string => {
return text
.replaceAll("_", " ")
.split(" ")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(" ");