fix dialog back button for android (#3428)
* fix types * remove unused async * add try/catch
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user