Updated on 2026-08-14
This commit is contained in:
parent
7fcb3a8525
commit
06afe233fb
21 changed files with 17 additions and 364 deletions
|
|
@ -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)}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue