Skip to content

Commit

Permalink
close modal on background click
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmkm committed Aug 5, 2024
1 parent 83e553d commit 23900d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nextjs/components/common/TokenSelectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const TokenSelectModal: React.FC<ModalProps> = ({ tokenOptions, setIsModa

return (
<div className="fixed inset-0 bg-black bg-opacity-75 flex justify-center items-center z-50">
<div className="absolute w-full h-full" onClick={() => setIsModalOpen(false)} />
<div className="relative w-[500px]">
<div className="relative bg-base-300 border border-base-200 rounded-lg">
<div className="p-4">
Expand Down

0 comments on commit 23900d9

Please sign in to comment.