Skip to content

Commit b2a461f

Browse files
committed
chore: title parameter
1 parent 47e63a3 commit b2a461f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
package to.bitkit.models
22

33
import androidx.annotation.DrawableRes
4+
import androidx.annotation.StringRes
45
import androidx.compose.ui.graphics.Color
56
import to.bitkit.R
67
import to.bitkit.ui.theme.Colors
78

89
enum class ActivityBannerType(
910
@DrawableRes val icon: Int,
11+
@StringRes val title: Int,
1012
val color: Color,
1113
) {
1214
SPENDING(
1315
color = Colors.Purple,
1416
icon = R.drawable.ic_transfer,
17+
title = R.string.activity_banner__transfer_in_progress
1518
),
1619
SAVINGS(
1720
color = Colors.Brand,
1821
icon = R.drawable.ic_transfer,
22+
title = R.string.activity_banner__transfer_in_progress
1923
)
2024
}

app/src/main/java/to/bitkit/ui/screens/wallets/HomeScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ private fun Content(
487487
homeUiState.banners.forEach { banner ->
488488
ActivityBanner(
489489
gradientColor = banner.color,
490-
title = stringResource(R.string.activity_banner__transfer_in_progress),
490+
title = stringResource(banner.title),
491491
icon = banner.icon,
492492
onClick = {
493493
when (banner) {

0 commit comments

Comments
 (0)