mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-17 10:28:46 -04:00
fix magic wand cursor 🪄
This commit is contained in:
@@ -10,6 +10,7 @@ const CustomImage = ({
|
||||
height,
|
||||
placeholder,
|
||||
alt,
|
||||
layout,
|
||||
quality,
|
||||
priority,
|
||||
className,
|
||||
@@ -17,13 +18,13 @@ const CustomImage = ({
|
||||
}: NextImageProps) => {
|
||||
// passed directly into next/image: https://nextjs.org/docs/api-reference/next/image
|
||||
const imageProps: Partial<NextImageProps> = {
|
||||
width: typeof width === "string" ? parseInt(width) : width,
|
||||
height: typeof height === "string" ? parseInt(height) : height,
|
||||
layout: "intrinsic",
|
||||
width: typeof width === "string" ? Number.parseInt(width) : width,
|
||||
height: typeof height === "string" ? Number.parseInt(height) : height,
|
||||
alt: alt || "",
|
||||
layout: layout || "intrinsic",
|
||||
quality: quality || 65,
|
||||
loading: priority ? "eager" : "lazy",
|
||||
priority: !!priority,
|
||||
loading: priority ? "eager" : "lazy",
|
||||
};
|
||||
|
||||
if (typeof src === "object") {
|
||||
|
||||
Reference in New Issue
Block a user