This commit is contained in:
tresabhi committed 2026-08-05 13:01:51 -05:00
1 parent 851a1108d2
commit bc2b9f1267
10 files changed
+174 -15

No files matched your search

@@ -1,4 +1,4 @@
import { asset, Avatar } from "@blitzkit/core";
import { Avatar } from "@blitzkit/core";
import { Cross1Icon, DownloadIcon } from "@radix-ui/react-icons";
import {
Dialog,
@@ -18,9 +18,7 @@ type GalleryCardProps = MaybeSkeletonComponentProps<{
}>;
export function GalleryCard(props: GalleryCardProps) {
const src = asset(
`gallery/avatars/${!props.skeleton && `${props.avatar.id}${props.avatar.extension}`}`,
);
const src = `/api/gallery/avatars/${!props.skeleton && `${props.avatar.id}${props.avatar.extension}`}`;
const card = useRef<HTMLDivElement>(null!);
const { unwrap } = useLocale();