Bug 1863545 - Add rc footer in no analysis state

This commit is contained in:
rahulsainani 2023-11-14 11:50:35 +01:00 коммит произвёл mergify[bot]
Родитель bdc0941456
Коммит 16316718af
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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(),
)
}