зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1863545 - Add rc footer in no analysis state
This commit is contained in:
Родитель
bdc0941456
Коммит
16316718af
|
@ -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(),
|
||||
)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче