Skip to content

Commit f7e4b84

Browse files
author
burak.ozturk1
committed
Removed unused showLoading logic and log
1 parent 8dc5a7f commit f7e4b84

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityAddIcon.kt

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.trendyol.uicomponents.quantitypicker
22

3-
import android.util.Log
43
import androidx.compose.animation.Animatable
54
import androidx.compose.animation.core.tween
65
import androidx.compose.foundation.background
@@ -27,8 +26,7 @@ import kotlinx.coroutines.launch
2726
internal fun QuantityAddIcon(
2827
icons: QuantityIcons,
2928
quantityData: QuantityPickerViewData,
30-
onAddClick: (() -> Unit)?,
31-
showLoading: Boolean
29+
onAddClick: (() -> Unit)?
3230
) {
3331
val coroutineScope = rememberCoroutineScope()
3432
var targetBackgroundColor by remember {
@@ -60,10 +58,6 @@ internal fun QuantityAddIcon(
6058
}
6159

6260
LaunchedEffect(key1 = quantityData.currentQuantity) {
63-
Log.e(
64-
"XXX",
65-
"quantity = ${quantityData.currentQuantity} lastQ:${lastQuantityCount.value} isLoading:$showLoading"
66-
)
6761
if (lastQuantityCount.value != quantityData.currentQuantity) {
6862
lastQuantityCount.value = quantityData.currentQuantity
6963
iconTintColor = quantityData.getAddIconColor(icons, quantityData.currentQuantity)

libraries/quantity-picker-compose/src/main/java/com/trendyol/uicomponents/quantitypicker/QuantityPicker.kt

+2-4
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ internal fun VerticalQuantityPicker(
8888
QuantityAddIcon(
8989
icons = icons,
9090
quantityData = quantityData,
91-
onAddClick = onAddClick,
92-
showLoading = showLoading
91+
onAddClick = onAddClick
9392
)
9493

9594
AnimatedVisibility(visible = quantityData.currentQuantity > 0 || showLoading) {
@@ -166,8 +165,7 @@ internal fun HorizontalQuantityPicker(
166165
QuantityAddIcon(
167166
icons = icons,
168167
quantityData = quantityData,
169-
onAddClick = onAddClick,
170-
showLoading = showLoading,
168+
onAddClick = onAddClick
171169
)
172170
}
173171
}

0 commit comments

Comments
 (0)