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.

missed a spot

Steven Tey3def4e60cdc1
diff --git a/app/ui/modals/add-edit-link-modal/og-section.tsx b/app/ui/modals/add-edit-link-modal/og-section.tsx
index 45925a5cb7..e38d8b5583 100644
--- a/app/ui/modals/add-edit-link-modal/og-section.tsx
+++ b/app/ui/modals/add-edit-link-modal/og-section.tsx
@@ -130,7 +130,10 @@ export default function OGSection({
openPopover={openPopover}
setOpenPopover={setOpenPopover}
>
- <div className="flex h-6 w-6 cursor-pointer items-center justify-center rounded-md transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200">
+ <div
+ onClick={() => setOpenPopover(true)}
+ className="flex h-6 w-6 cursor-pointer items-center justify-center rounded-md transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200"
+ >
<Unsplash className="h-3 w-3 text-gray-500" />
</div>
</Popover>
diff --git a/app/ui/popover.tsx b/app/ui/popover.tsx
index 9686b05ac8..998838dbfc 100644
--- a/app/ui/popover.tsx
+++ b/app/ui/popover.tsx
@@ -15,8 +15,8 @@ export default function Popover({
children: ReactNode;
content: ReactNode | string;
align?: "center" | "start" | "end";
- openPopover?: boolean;
- setOpenPopover?: Dispatch<SetStateAction<boolean>>;
+ openPopover: boolean;
+ setOpenPopover: Dispatch<SetStateAction<boolean>>;
}) {
const { isMobile } = useMediaQuery();