File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
app/src/main/java/to/bitkit Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11package to.bitkit.models
22
33import androidx.annotation.DrawableRes
4+ import androidx.annotation.StringRes
45import androidx.compose.ui.graphics.Color
56import to.bitkit.R
67import to.bitkit.ui.theme.Colors
78
89enum 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}
Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments