mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
remove redundancy
This commit is contained in:
parent
25b335aa18
commit
fe1096d7d6
@ -227,11 +227,9 @@ function CamerasFilterButton({
|
|||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<FaVideo
|
<FaVideo
|
||||||
className={`${selectedCameras?.length ? "text-primary dark:text-primary" : "text-secondary-foreground"}`}
|
className={`${selectedCameras?.length ? "text-primary" : "text-secondary-foreground"}`}
|
||||||
/>
|
/>
|
||||||
<div
|
<div className="hidden md:block">
|
||||||
className={`hidden md:block ${selectedCameras?.length ? "text-primary dark:text-primary" : "text-primary"}`}
|
|
||||||
>
|
|
||||||
{selectedCameras == undefined
|
{selectedCameras == undefined
|
||||||
? "All Cameras"
|
? "All Cameras"
|
||||||
: `${selectedCameras.includes("birdseye") ? selectedCameras.length - 1 : selectedCameras.length} Camera${selectedCameras.length !== 1 ? "s" : ""}`}
|
: `${selectedCameras.includes("birdseye") ? selectedCameras.length - 1 : selectedCameras.length} Camera${selectedCameras.length !== 1 ? "s" : ""}`}
|
||||||
@ -428,11 +426,9 @@ function CalendarFilterButton({
|
|||||||
variant="secondary"
|
variant="secondary"
|
||||||
>
|
>
|
||||||
<FaCalendarAlt
|
<FaCalendarAlt
|
||||||
className={`${day == undefined ? "text-secondary-foreground" : "text-primary dark:text-primary"}`}
|
className={`${day == undefined ? "text-secondary-foreground" : "text-primary"}`}
|
||||||
/>
|
/>
|
||||||
<div
|
<div className="hidden md:block">
|
||||||
className={`hidden md:block ${day == undefined ? "text-primary" : "text-primary dark:text-primary"}`}
|
|
||||||
>
|
|
||||||
{day == undefined ? "Last 24 Hours" : selectedDate}
|
{day == undefined ? "Last 24 Hours" : selectedDate}
|
||||||
</div>
|
</div>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user