mirror of
https://github.com/gabehf/Koito.git
synced 2026-04-22 12:01:52 -07:00
fix: clear input when closing edit modal
This commit is contained in:
parent
c2669b8d99
commit
79655683d1
1 changed files with 5 additions and 1 deletions
|
|
@ -95,11 +95,15 @@ export default function EditModal({ open, setOpen, type, id }: Props) {
|
|||
}
|
||||
})
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
const handleClose = () => {
|
||||
setOpen(false)
|
||||
setInput('')
|
||||
}
|
||||
|
||||
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="w-full">
|
||||
<h2>Alias Manager</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue