diff --git a/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ParticipateBottomBlock.kt b/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ParticipateBottomBlock.kt
index 987d178626..e34bd7dd8c 100644
--- a/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ParticipateBottomBlock.kt
+++ b/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ParticipateBottomBlock.kt
@@ -56,7 +56,7 @@ internal fun ParticipateBottomBlock(
),
)
PersonalCodeCard(code = code)
- AdditionalButtons(shareLink = shareLink, showCopySnackbar = showCopySnackbar)
+ AdditionalButtons(code = code, shareLink = shareLink, showCopySnackbar = showCopySnackbar)
AgreementText(firstPartResId = R.string.referral_tos_enroled_prefix, onClicked = onAgreementClicked)
}
}
@@ -94,7 +94,7 @@ private fun PersonalCodeCard(code: String) {
}
@Composable
-private fun AdditionalButtons(shareLink: String, showCopySnackbar: () -> Unit) {
+private fun AdditionalButtons(code: String, shareLink: String, showCopySnackbar: () -> Unit) {
val clipboardManager = LocalClipboardManager.current
val hapticFeedback = LocalHapticFeedback.current
@@ -108,7 +108,7 @@ private fun AdditionalButtons(shareLink: String, showCopySnackbar: () -> Unit) {
iconResId = R.drawable.ic_copy,
onClicked = {
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
- clipboardManager.setText(AnnotatedString(shareLink))
+ clipboardManager.setText(AnnotatedString(code))
showCopySnackbar()
},
)
@@ -120,7 +120,7 @@ private fun AdditionalButtons(shareLink: String, showCopySnackbar: () -> Unit) {
iconResId = R.drawable.ic_share,
onClicked = {
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
- context.shareText(shareLink)
+ context.shareText(context.getString(R.string.referral_share_link, shareLink))
},
)
}
diff --git a/features/referral/presentation/src/main/res/values-ru/string.xml b/features/referral/presentation/src/main/res/values-ru/string.xml
index 16daf7f17e..523d489aee 100644
--- a/features/referral/presentation/src/main/res/values-ru/string.xml
+++ b/features/referral/presentation/src/main/res/values-ru/string.xml
@@ -21,4 +21,5 @@
Не удалось загрузить информацию по реферальной программе. Причина: %s. Пожалуйста, попробуйте позже.
Не удалось обработать вашу заявку на участие. Причина: %s. Пожалуйста, попробуйте позже. Если проблема сохранится, вы можете обратиться в техподдержку.
Персональный код скопирован!
+ Купи Tangem Wallet со скидкой!\n%s
\ No newline at end of file
diff --git a/features/referral/presentation/src/main/res/values/strings.xml b/features/referral/presentation/src/main/res/values/strings.xml
index 8e6c0e6912..dfac4843e0 100644
--- a/features/referral/presentation/src/main/res/values/strings.xml
+++ b/features/referral/presentation/src/main/res/values/strings.xml
@@ -1,24 +1,25 @@
- Referral program
- Refer your friends to Tangem
- You
- Will get
- for each wallet bought by your friend on your %s network address%s
- Your friend
- Will get a
- %s discount
- when buying a card on tangem.com
- By tapping this button you accept
- terms and conditions
- of the referral program
- Participate
- You\'ve accepted
- Your personal code
- %d wallets
- Your friends bought
- Failed to load the information about the referral program. Please try again later.
- Failed to load the information about the referral program. Reason: %s. Please try again later.
- Your participation request could not be processed. Reason: %s. Please try again later. If the problem persists — feel free to contact our support.
- Personal code copied!
+ Referral program
+ Refer your friends to Tangem
+ You
+ Will get
+ for each wallet bought by your friend on your %s network address%s
+ Your friend
+ Will get a
+ %s discount
+ when buying a card on tangem.com
+ By tapping this button you accept
+ terms and conditions
+ of the referral program
+ Participate
+ You\'ve accepted
+ Your personal code
+ %d wallets
+ Your friends bought
+ Failed to load the information about the referral program. Please try again later.
+ Failed to load the information about the referral program. Reason: %s. Please try again later.
+ Your participation request could not be processed. Reason: %s. Please try again later. If the problem persists — feel free to contact our support.
+ Personal code copied!
+ Buy Tangem Wallet with discount!\n%s
\ No newline at end of file