Skip to content

Commit 65df908

Browse files
committed
refactor: fix error
1 parent 9a67ee4 commit 65df908

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/showcase/demo/gallery/grid-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function BasicDemo() {
3939
</div>
4040
<Portal>
4141
{present && (
42-
<div ref={ref} className={`w-full h-[100dvh] top-0 left-0 !fixed z-[100000] ${isVisible ? 'opacity-100' : 'opacity-0'} transition-opacity duration-200`}>
42+
<div ref={ref as React.RefObject<HTMLDivElement>} className={`w-full h-[100dvh] top-0 left-0 !fixed z-[100000] ${isVisible ? 'opacity-100' : 'opacity-0'} transition-opacity duration-200`}>
4343
<Gallery className="w-full h-full" activeIndex={activeIndex} onActiveIndexChange={(e: useGalleryChangeEvent) => setActiveIndex(e.value ?? 0)}>
4444
<Gallery.Backdrop />
4545
<Gallery.Prev>

0 commit comments

Comments
 (0)