fix: clear input when closing edit modal

pull/23/head
Gabe Farrell 6 months ago
parent c2669b8d99
commit 79655683d1

@ -95,11 +95,15 @@ export default function EditModal({ open, setOpen, type, id }: Props) {
} }
}) })
setLoading(false) setLoading(false)
}
const handleClose = () => {
setOpen(false)
setInput('')
} }
return ( return (
<Modal maxW={1000} isOpen={open} onClose={() => setOpen(false)}> <Modal maxW={1000} isOpen={open} onClose={handleClose}>
<div className="flex flex-col items-start gap-6 w-full"> <div className="flex flex-col items-start gap-6 w-full">
<div className="w-full"> <div className="w-full">
<h2>Alias Manager</h2> <h2>Alias Manager</h2>

Loading…
Cancel
Save