mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
fix linter complaints in unmodified files
This commit is contained in:
parent
e7600e30c7
commit
bdd9a6e2a7
@ -2,6 +2,7 @@ import { ReviewSegment } from "@/types/review";
|
|||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
import { LuRefreshCcw } from "react-icons/lu";
|
import { LuRefreshCcw } from "react-icons/lu";
|
||||||
import { MutableRefObject, useMemo } from "react";
|
import { MutableRefObject, useMemo } from "react";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
type NewReviewDataProps = {
|
type NewReviewDataProps = {
|
||||||
className: string;
|
className: string;
|
||||||
@ -29,11 +30,12 @@ export default function NewReviewData({
|
|||||||
<div className={className}>
|
<div className={className}>
|
||||||
<div className="pointer-events-auto mr-[65px] flex items-center justify-center md:mr-[115px]">
|
<div className="pointer-events-auto mr-[65px] flex items-center justify-center md:mr-[115px]">
|
||||||
<Button
|
<Button
|
||||||
className={`${
|
className={cn(
|
||||||
hasUpdate
|
hasUpdate
|
||||||
? "duration-500 animate-in slide-in-from-top"
|
? "duration-500 animate-in slide-in-from-top"
|
||||||
: "invisible"
|
: "invisible",
|
||||||
} mx-auto mt-5 bg-gray-400 text-center text-white`}
|
"mx-auto mt-5 bg-gray-400 text-center text-white",
|
||||||
|
)}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
pullLatestData();
|
pullLatestData();
|
||||||
if (contentRef.current) {
|
if (contentRef.current) {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { LuX } from "react-icons/lu";
|
import { LuX } from "react-icons/lu";
|
||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
import { FaCompactDisc } from "react-icons/fa";
|
import { FaCompactDisc } from "react-icons/fa";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
type SaveExportOverlayProps = {
|
type SaveExportOverlayProps = {
|
||||||
className: string;
|
className: string;
|
||||||
@ -17,9 +18,11 @@ export default function SaveExportOverlay({
|
|||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className={className}>
|
||||||
<div
|
<div
|
||||||
className={`pointer-events-auto flex items-center justify-center gap-2 rounded-lg px-2 ${
|
className={cn(
|
||||||
show ? "duration-500 animate-in slide-in-from-top" : "invisible"
|
"pointer-events-auto flex items-center justify-center gap-2 rounded-lg px-2",
|
||||||
} mx-auto mt-5 text-center`}
|
show ? "duration-500 animate-in slide-in-from-top" : "invisible",
|
||||||
|
"mx-auto mt-5 text-center",
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
className="flex items-center gap-1"
|
className="flex items-center gap-1"
|
||||||
|
|||||||
@ -445,7 +445,7 @@ export default function GeneralMetrics({
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className=" mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2">
|
<div className="mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2">
|
||||||
{statsHistory.length != 0 ? (
|
{statsHistory.length != 0 ? (
|
||||||
<div className="rounded-lg bg-background_alt p-2.5 md:rounded-2xl">
|
<div className="rounded-lg bg-background_alt p-2.5 md:rounded-2xl">
|
||||||
<div className="mb-5">GPU Usage</div>
|
<div className="mb-5">GPU Usage</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user