1
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:
2022-01-24 20:43:45 -05:00
parent 5847fd82b6
commit c1e030dfcc
6 changed files with 30 additions and 31 deletions

View File

@@ -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") {