From 48ec7c92ae6d428070e7e4766b96cc260fbaec15 Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Mon, 22 Jun 2026 12:25:31 -0400 Subject: [PATCH] chore(labs): hide "Features" section header when beta overrides are off Signed-off-by: Brandon McAnsh --- .../flipcash/app/lab/internal/LabsScreenContent.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/flipcash/features/lab/src/main/kotlin/com/flipcash/app/lab/internal/LabsScreenContent.kt b/apps/flipcash/features/lab/src/main/kotlin/com/flipcash/app/lab/internal/LabsScreenContent.kt index f2a046953..f485cface 100644 --- a/apps/flipcash/features/lab/src/main/kotlin/com/flipcash/app/lab/internal/LabsScreenContent.kt +++ b/apps/flipcash/features/lab/src/main/kotlin/com/flipcash/app/lab/internal/LabsScreenContent.kt @@ -97,11 +97,13 @@ internal fun LabsScreenContent(viewModel: LabsScreenViewModel, onboarding: Boole } } - item(contentType = "section_header") { - SectionHeader( - modifier = Modifier.padding(horizontal = CodeTheme.dimens.inset), - title = stringResource(R.string.title_settingsSectionFeatures) - ) + if (betaOverride) { + item(contentType = "section_header") { + SectionHeader( + modifier = Modifier.padding(horizontal = CodeTheme.dimens.inset), + title = stringResource(R.string.title_settingsSectionFeatures) + ) + } } items(betaFlags, key = { it.flag.key }, contentType = { "feature_flag" }) { feature -> Column(modifier = Modifier.animateItem()) {