Updated on 2026-08-14
This commit is contained in:
commit
829b98b2a0
45 changed files with 515 additions and 114 deletions
|
|
@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.padding
|
|||
import androidx.compose.material.MaterialTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.dimensionResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import com.tangem.core.ui.components.PrimaryEndIconButton
|
||||
|
|
@ -23,7 +22,7 @@ internal fun NonParticipateBottomBlock(onAgreementClicked: () -> Unit, onPartici
|
|||
PrimaryEndIconButton(
|
||||
modifier = Modifier.padding(all = TangemTheme.dimens.spacing16),
|
||||
text = stringResource(id = R.string.referral_button_participate),
|
||||
iconResId = R.drawable.ic_tangem,
|
||||
iconResId = R.drawable.ic_tangem_24,
|
||||
onClicked = onParticipateClicked,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ private fun AdditionalButtons(code: String, shareLink: String, showCopySnackbar:
|
|||
PrimaryStartIconButton(
|
||||
modifier = Modifier.weight(1f),
|
||||
text = stringResource(id = R.string.common_copy),
|
||||
iconResId = R.drawable.ic_copy,
|
||||
iconResId = R.drawable.ic_copy_24,
|
||||
onClicked = {
|
||||
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
|
||||
clipboardManager.setText(AnnotatedString(code))
|
||||
|
|
@ -120,7 +120,7 @@ private fun AdditionalButtons(code: String, shareLink: String, showCopySnackbar:
|
|||
PrimaryStartIconButton(
|
||||
modifier = Modifier.weight(1f),
|
||||
text = stringResource(id = R.string.common_share),
|
||||
iconResId = R.drawable.ic_share,
|
||||
iconResId = R.drawable.ic_share_24,
|
||||
onClicked = {
|
||||
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
|
||||
context.shareText(context.getString(R.string.referral_share_link, shareLink))
|
||||
|
|
|
|||
|
|
@ -207,9 +207,9 @@ private fun ReferralInfo(
|
|||
)
|
||||
}
|
||||
is ReferralInfoState.Loading -> {
|
||||
LoadingCondition(iconResId = R.drawable.ic_tether)
|
||||
LoadingCondition(iconResId = R.drawable.ic_tether_28)
|
||||
VerticalSpacer(spaceResId = R.dimen.spacing32)
|
||||
LoadingCondition(iconResId = R.drawable.ic_discount)
|
||||
LoadingCondition(iconResId = R.drawable.ic_discount_28)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -223,7 +223,7 @@ private fun Conditions(state: ReferralInfoContentState) {
|
|||
|
||||
@Composable
|
||||
private fun ConditionForYou(state: ReferralInfoContentState) {
|
||||
Condition(iconResId = R.drawable.ic_tether) {
|
||||
Condition(iconResId = R.drawable.ic_tether_28) {
|
||||
when (state) {
|
||||
is ReferralInfoState.ParticipantContent -> InfoForYou(
|
||||
award = state.award,
|
||||
|
|
@ -240,7 +240,7 @@ private fun ConditionForYou(state: ReferralInfoContentState) {
|
|||
|
||||
@Composable
|
||||
private fun ConditionForYourFriend(discount: String) {
|
||||
Condition(iconResId = R.drawable.ic_discount) {
|
||||
Condition(iconResId = R.drawable.ic_discount_28) {
|
||||
InfoForYourFriend(discount = discount)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue