Updated on 2026-08-14

This commit is contained in:
Tangem 2023-09-27 11:16:22 +03:00
parent e76414cc06
commit f3f29813e0
10 changed files with 132 additions and 4 deletions

View file

@ -76,6 +76,7 @@ private fun TokenReceiveBottomSheetContent(content: TokenReceiveBottomSheetConfi
text = stringResource(id = R.string.common_copy),
iconResId = R.drawable.ic_copy_24,
onClick = {
content.onCopyClick.invoke()
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
clipboardManager.setText(AnnotatedString(selectedAddress.value))
},
@ -85,6 +86,7 @@ private fun TokenReceiveBottomSheetContent(content: TokenReceiveBottomSheetConfi
text = stringResource(id = R.string.common_share),
iconResId = R.drawable.ic_share_24,
onClick = {
content.onShareClick.invoke()
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
context.shareText(selectedAddress.value)
},

View file

@ -7,4 +7,6 @@ class TokenReceiveBottomSheetConfig(
val symbol: String,
val network: String,
val addresses: List<AddressModel>,
val onCopyClick: () -> Unit,
val onShareClick: () -> Unit,
) : TangemBottomSheetConfigContent