Bug 1863545 - Add rc footer in no analysis state

fenix/121.0
rahulsainani 7 months ago committed by mergify[bot]
parent e92907183b
commit 6fca903727

@ -50,6 +50,7 @@ import org.mozilla.fenix.theme.FirefoxTheme
* recommendations toggle state.
* @param onSettingsExpandToggleClick Invoked when the user expands or collapses the settings card.
* @param onInfoExpandToggleClick Invoked when the user expands or collapses the info card.
* @param onFooterLinkClick Invoked when the user clicks on the footer link.
* @param modifier Modifier to be applied to the composable.
*/
@Suppress("LongParameterList")
@ -66,6 +67,7 @@ fun NoAnalysis(
onProductRecommendationsEnabledStateChange: (Boolean) -> Unit,
onSettingsExpandToggleClick: () -> Unit,
onInfoExpandToggleClick: () -> Unit,
onFooterLinkClick: () -> Unit,
modifier: Modifier = Modifier,
) {
Column(
@ -89,6 +91,10 @@ fun NoAnalysis(
onExpandToggleClick = onSettingsExpandToggleClick,
modifier = Modifier.fillMaxWidth(),
)
ReviewQualityCheckFooter(
onLinkClick = onFooterLinkClick,
)
}
}
@ -202,6 +208,7 @@ private fun NoAnalysisPreview() {
onProductRecommendationsEnabledStateChange = { productRecommendationsEnabled = it },
onSettingsExpandToggleClick = { isSettingsExpanded = !isSettingsExpanded },
onInfoExpandToggleClick = { isInfoExpanded = !isInfoExpanded },
onFooterLinkClick = {},
modifier = Modifier.fillMaxWidth(),
)
}

@ -207,6 +207,7 @@ private fun ProductReview(
onProductRecommendationsEnabledStateChange = onProductRecommendationsEnabledStateChange,
onSettingsExpandToggleClick = onSettingsExpandToggleClick,
onInfoExpandToggleClick = onInfoExpandToggleClick,
onFooterLinkClick = onFooterLinkClick,
modifier = Modifier.fillMaxWidth(),
)
}

Loading…
Cancel
Save