Skip to content

Commit

Permalink
chore: add close button on popup (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-deepak04 authored Aug 9, 2023
1 parent 15a3408 commit d734474
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion components/popup/popupInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const PopupInfo: React.FC<{
</div>
<p className="">{currentCard?.description}</p>
</div>
<div className="card-actions justify-end">
<div className="card-actions justify-end mt-auto">
<a
onClick={(e) => e.stopPropagation()}
href={currentCard?.url}
Expand All @@ -66,6 +66,16 @@ export const PopupInfo: React.FC<{
Visit site
</a>
</div>

{/* Close Text */}
<div className="flex justify-center items-center">
<p
onClick={onClose}
className="cursor-pointer text-sm text-text-primary -mt-3 hover:text-theme-primary hover:underline"
>
Close
</p>
</div>
</div>,
overlayRoot
)}
Expand Down

1 comment on commit d734474

@vercel
Copy link

@vercel vercel bot commented on d734474 Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.