mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 02:29:19 +03:00
feat: explore audio type display icon
This commit is contained in:
parent
7f172ca2c6
commit
9fe9345263
@ -23,6 +23,7 @@ import { FrigateConfig } from "@/types/frigateConfig";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { getTranslatedLabel } from "@/utils/i18n";
|
import { getTranslatedLabel } from "@/utils/i18n";
|
||||||
import { LuSearchX } from "react-icons/lu";
|
import { LuSearchX } from "react-icons/lu";
|
||||||
|
import { getIconForLabel } from "@/utils/iconUtil";
|
||||||
|
|
||||||
type ExploreViewProps = {
|
type ExploreViewProps = {
|
||||||
setSearchDetail: (search: SearchResult | undefined) => void;
|
setSearchDetail: (search: SearchResult | undefined) => void;
|
||||||
@ -149,6 +150,9 @@ function ThumbnailRow({
|
|||||||
return (
|
return (
|
||||||
<div className="rounded-lg bg-background_alt p-2 md:px-4">
|
<div className="rounded-lg bg-background_alt p-2 md:px-4">
|
||||||
<div className="flex flex-row items-center text-lg smart-capitalize">
|
<div className="flex flex-row items-center text-lg smart-capitalize">
|
||||||
|
{labelType === "audio"
|
||||||
|
? getIconForLabel("", labelType, "size-4 mr-1")
|
||||||
|
: null}
|
||||||
{getTranslatedLabel(label, labelType)}
|
{getTranslatedLabel(label, labelType)}
|
||||||
{searchResults && (
|
{searchResults && (
|
||||||
<span className="ml-3 text-sm text-secondary-foreground">
|
<span className="ml-3 text-sm text-secondary-foreground">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user