feat: support closing modal via back button
This commit is contained in:
parent
53c8483a3f
commit
60fca48a72
10 changed files with 264 additions and 44 deletions
|
|
@ -4,7 +4,6 @@ import {
|
|||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogHeader,
|
||||
DialogOverlay,
|
||||
DialogTitle
|
||||
} from '@/components/ui/dialog'
|
||||
import {
|
||||
|
|
@ -99,8 +98,7 @@ export default function ZapDialog({
|
|||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogOverlay onClick={() => setOpen(false)} />
|
||||
<DialogContent hideOverlay onOpenAutoFocus={(e) => e.preventDefault()}>
|
||||
<DialogContent onOpenAutoFocus={(e) => e.preventDefault()}>
|
||||
<DialogHeader>
|
||||
<DialogTitle className="flex gap-2 items-center">
|
||||
<div className="shrink-0">{t('Zap to')}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue