Updated on 2026-08-14
This commit is contained in:
parent
81d8760fca
commit
a6da708704
3 changed files with 13 additions and 27 deletions
|
|
@ -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()
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue