Use skeleton for review image loading (#10040)

* don't show chips and date when image is loading

* add skeleton and change observer threshold

* remove debug

* use skeleton for live view too

* old activity indicator looks better on live

* fix gradients and lazy load with skeleton

* fading effects
This commit is contained in:
Josh Hawkins
2024-02-26 10:07:54 -06:00
committed by GitHub
parent 4061be602d
commit 8d96111184
5 changed files with 102 additions and 37 deletions

View File

@@ -0,0 +1,15 @@
import { cn } from "@/lib/utils"
function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("animate-pulse rounded-md bg-muted", className)}
{...props}
/>
)
}
export { Skeleton }