Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

revert "omit height and width from BlurImage"

Karan Handa81b31d63d77d
diff --git a/apps/web/ui/layout/project-select.tsx b/apps/web/ui/layout/project-select.tsx
index e6a53b40a3..8599359227 100644
--- a/apps/web/ui/layout/project-select.tsx
+++ b/apps/web/ui/layout/project-select.tsx
@@ -154,6 +154,8 @@ function ProjectList({
logo ||
`${GOOGLE_FAVICON_URL}${primaryDomain?.slug || SHORT_DOMAIN}`
}
+ width={40}
+ height={40}
alt={id}
className="h-7 w-7 overflow-hidden rounded-full"
/>
diff --git a/apps/web/ui/shared/blur-image.tsx b/apps/web/ui/shared/blur-image.tsx
index e2d9f9662d..e9e8d995aa 100644
--- a/apps/web/ui/shared/blur-image.tsx
+++ b/apps/web/ui/shared/blur-image.tsx
@@ -4,7 +4,7 @@ import { cn } from "@dub/utils";
import Image, { ImageProps } from "next/image";
import { useEffect, useState } from "react";
-export function BlurImage(props: Omit<ImageProps, "width" | "height">) {
+export function BlurImage(props: ImageProps) {
const [loading, setLoading] = useState(true);
const [src, setSrc] = useState(props.src);
useEffect(() => setSrc(props.src), [props.src]); // update the `src` value when the `prop.src` value changes