Skip to content

Commit

Permalink
Remove variation quantity from products screen
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhBhat committed Dec 31, 2024
1 parent cb947d2 commit a5279e2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private fun ProductInfo(item: WooPosItem) {
Spacer(modifier = Modifier.height(8.dp))
when (item) {
is SimpleProduct -> SimpleProductDetails(item = item)
is VariableProduct -> VariableProductDetails(item = item)
is VariableProduct -> VariableProductDetails()
is Variation -> VariationProductDetails(item = item)
}
}
Expand Down Expand Up @@ -249,9 +249,9 @@ private fun SimpleProductDetails(item: SimpleProduct) {
}

@Composable
private fun VariableProductDetails(item: VariableProduct) {
private fun VariableProductDetails() {
Text(
text = "${item.numOfVariations} Variations",
text = stringResource(id = R.string.woopos_variations_options_available_text),
style = MaterialTheme.typography.h6,
fontWeight = FontWeight.Normal
)
Expand Down

0 comments on commit a5279e2

Please sign in to comment.