Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## UNRELEASED
### Added
### Changed
* Replace items depositText w/ local i18n text
### Removed
### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import io.snabble.sdk.ui.R
import io.snabble.sdk.ui.cart.shoppingcart.product.model.ProductItem

@Composable
Expand All @@ -34,8 +36,9 @@ internal fun ProductDescription(modifier: Modifier = Modifier, item: ProductItem
else -> LineItemDescription(item.totalPriceText)
}
if (item.deposit != null) {
val depositText = stringResource(id = R.string.Snabble_Shoppingcart_deposit)
Text(
text = "${item.priceText} + ${item.deposit.depositPriceText} ${item.deposit.depositText}",
text = "${item.priceText} + ${item.deposit.depositPriceText} $depositText",
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurface
)
Expand Down