mirror of
https://github.com/alexhopeoconnor/frigate.git
synced 2026-10-22 11:17:50 +10:00
Use cn() for class names throughout (#11278)
* add scrollbar on ptz presets dropdown * use cn function for class names throughout * Revert "add scrollbar on ptz presets dropdown" This reverts commit 2cee93dc3ecf0f77c78b8ef5bcd3c7135227ecd3.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { isSafari } from "react-device-detect";
|
||||
import { Skeleton } from "../ui/skeleton";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export default function ImageLoadingIndicator({
|
||||
className,
|
||||
@@ -13,8 +14,8 @@ export default function ImageLoadingIndicator({
|
||||
}
|
||||
|
||||
return isSafari ? (
|
||||
<div className={`bg-gray-300 pointer-events-none ${className ?? ""}`} />
|
||||
<div className={cn("bg-gray-300 pointer-events-none", className)} />
|
||||
) : (
|
||||
<Skeleton className={`pointer-events-none ${className ?? ""}`} />
|
||||
<Skeleton className={cn("pointer-events-none", className)} />
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user