Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-15 20:21:52 +05:00
parent 81d8760fca
commit a6da708704
3 changed files with 13 additions and 27 deletions

View file

@ -19,9 +19,7 @@ internal fun PushNotificationsScreen(
onAllowPermission: () -> Unit,
onDenyPermission: () -> Unit,
) {
var isClicked by remember { mutableStateOf(false) }
val requestPushPermission = requestPushPermission(
isClicked = isClicked,
onAllow = onAllowPermission,
onDeny = onDenyPermission,
pushPermission = getPushPermissionOrNull(),
@ -43,7 +41,6 @@ internal fun PushNotificationsScreen(
primaryButton = ShowcaseButtonModel(
buttonText = resourceReference(R.string.common_allow),
onClick = {
isClicked = true
onRequest()
requestPushPermission()
},