Updated on 2026-08-14

This commit is contained in:
Tangem 2022-11-28 14:18:46 +03:00
parent 7fcb3a8525
commit 06afe233fb
21 changed files with 17 additions and 364 deletions

View file

@ -27,7 +27,7 @@ import com.tangem.feature.referral.presentation.R
fun Preview_AgreementText_InLightTheme() {
TangemTheme(isDark = false) {
Box(modifier = Modifier.background(MaterialTheme.colors.primary)) {
AgreementText(firstPartResId = R.string.referral_tou_not_enroled_prefix, onClicked = {})
AgreementText(firstPartResId = R.string.referral_tos_not_enroled_prefix, onClicked = {})
}
}
}
@ -37,7 +37,7 @@ fun Preview_AgreementText_InLightTheme() {
fun Preview_AgreementText_InDarkTheme() {
TangemTheme(isDark = true) {
Box(modifier = Modifier.background(MaterialTheme.colors.primary)) {
AgreementText(firstPartResId = R.string.referral_tou_not_enroled_prefix, onClicked = {})
AgreementText(firstPartResId = R.string.referral_tos_not_enroled_prefix, onClicked = {})
}
}
}
@ -71,7 +71,7 @@ private fun annotatedAgreementString(firstPart: String): AnnotatedString {
append(stringResource(id = R.string.common_terms_and_conditions))
}
withStyle(SpanStyle(color = MaterialTheme.colors.textColor(type = TextColorType.TERTIARY))) {
append(" ${stringResource(id = R.string.referral_tou_suffix)}")
append(" ${stringResource(id = R.string.referral_tos_suffix)}")
}
}
}

View file

@ -81,7 +81,7 @@ fun NonParticipateBottomBlock(
)
PersonalCodeCard(code = code)
AdditionalButtons(onCopyClicked = onCopyClicked, onShareClicked = onShareClicked)
AgreementText(firstPartResId = R.string.referral_tou_enroled_prefix, onClicked = onAgreementClicked)
AgreementText(firstPartResId = R.string.referral_tos_enroled_prefix, onClicked = onAgreementClicked)
}
}

View file

@ -37,7 +37,7 @@ fun Preview_ParticipateBottomBlock_InDarkTheme() {
fun ParticipateBottomBlock(onAgreementClicked: () -> Unit, onParticipateClicked: () -> Unit) {
Column {
AgreementText(
firstPartResId = R.string.referral_tou_not_enroled_prefix,
firstPartResId = R.string.referral_tos_not_enroled_prefix,
onClicked = onAgreementClicked,
)
PrimaryEndIconButton(

View file

@ -9,11 +9,11 @@
<string name="referral_point_discount_description_prefix">Получит</string>
<string name="referral_point_discount_description_value">%s скидку</string>
<string name="referral_point_discount_description_suffix">при покупке карточки на сайте tangem.com</string>
<string name="referral_tou_not_enroled_prefix">Нажимая на эту кнопку вы принимаете</string>
<string name="referral_tos_not_enroled_prefix">Нажимая на эту кнопку вы принимаете</string>
<string name="common_terms_and_conditions">условия участия</string>
<string name="referral_tou_suffix">в реферальной программе</string>
<string name="referral_tos_suffix">в реферальной программе</string>
<string name="referral_button_participate">Участвовать</string>
<string name="referral_tou_enroled_prefix">Вы приняли</string>
<string name="referral_tos_enroled_prefix">Вы приняли</string>
<string name="referral_promo_code_title">Ваш персональный код</string>
<string name="referral_wallets_purchased_count">%d кошельков</string>
<string name="referral_friends_bought_title">Ваши друзья купили</string>

View file

@ -9,11 +9,11 @@
<string name="referral_point_discount_description_prefix">Will get a</string>
<string name="referral_point_discount_description_value">%s discount</string>
<string name="referral_point_discount_description_suffix">when buying a card on tangem.com</string>
<string name="referral_tou_not_enroled_prefix">By tapping this button you accept</string>
<string name="referral_tos_not_enroled_prefix">By tapping this button you accept</string>
<string name="common_terms_and_conditions">terms and conditions</string>
<string name="referral_tou_suffix">of the referral program</string>
<string name="referral_tos_suffix">of the referral program</string>
<string name="referral_button_participate">Participate</string>
<string name="referral_tou_enroled_prefix">You\'ve accepted</string>
<string name="referral_tos_enroled_prefix">You\'ve accepted</string>
<string name="referral_promo_code_title">Your personal code</string>
<string name="referral_wallets_purchased_count">%d wallets</string>
<string name="referral_friends_bought_title">Your friends bought</string>