Rename openChange
This commit is contained in:
parent
f2584459f7
commit
94bdd24900
1 changed files with 2 additions and 1 deletions
|
|
@ -210,6 +210,7 @@ const CharacterModal = ({
|
||||||
appState.grid.characters[gridCharacter.position] = gridCharacter
|
appState.grid.characters[gridCharacter.position] = gridCharacter
|
||||||
|
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
|
if (onOpenChange) onOpenChange(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
function processError(error: any) {
|
function processError(error: any) {
|
||||||
|
|
@ -271,7 +272,7 @@ const CharacterModal = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={openChange}>
|
<Dialog open={open} onOpenChange={handleOpenChange}>
|
||||||
<DialogTrigger asChild>{children}</DialogTrigger>
|
<DialogTrigger asChild>{children}</DialogTrigger>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
className="Character"
|
className="Character"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue