fix dialog back button for android (#3428)
* fix types * remove unused async * add try/catch
This commit is contained in:
parent
c80dcc565e
commit
cd29dba761
3 changed files with 39 additions and 23 deletions
|
@ -135,8 +135,7 @@ export function Action({
|
|||
const {gtMobile} = useBreakpoints()
|
||||
const {close} = Dialog.useDialogContext()
|
||||
const handleOnPress = React.useCallback(() => {
|
||||
close()
|
||||
onPress()
|
||||
close(onPress)
|
||||
}, [close, onPress])
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue