Bug 1865452 - Remove review checker crossfade

(cherry picked from commit 4353524a52c791f7955cefcf1d93db3d2a42241e)
fenix/121.0
rahulsainani 7 months ago committed by mergify[bot]
parent 2489958391
commit 01cf1a3993

@ -4,7 +4,6 @@
package org.mozilla.fenix.shopping.ui
import androidx.compose.animation.Crossfade
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
@ -143,11 +142,7 @@ private fun ProductReview(
onRecommendedProductClick: (aid: String, url: String) -> Unit,
onProductRecommendationImpression: (aid: String) -> Unit,
) {
Crossfade(
targetState = state.productReviewState,
label = "ProductReview-Crossfade",
) { productReviewState ->
when (productReviewState) {
when (val productReviewState = state.productReviewState) {
is AnalysisPresent -> {
ProductAnalysis(
productRecommendationsEnabled = state.productRecommendationsPreference,
@ -213,4 +208,3 @@ private fun ProductReview(
}
}
}
}

Loading…
Cancel
Save