Skip to content

Commit

Permalink
Hide dive spots button behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetr4 committed Sep 3, 2024
1 parent 50b52db commit 4bb34d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/src/main/kotlin/cloud/mike/divelog/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ class App : Application() {
companion object {
// Feature flags
const val SHOW_FILTERS = false
const val SHOW_DIVE_SPOTS = false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import cloud.mike.divelog.App
import cloud.mike.divelog.R
import cloud.mike.divelog.ui.DiveTheme

Expand All @@ -45,11 +46,13 @@ fun HomeBottomBar(
description = stringResource(R.string.home_button_backup),
onClick = onShowBackup,
)
TooltipButton(
description = stringResource(R.string.home_button_dive_spots),
icon = Icons.Filled.Map,
onClick = onShowDiveSpots,
)
if (App.SHOW_DIVE_SPOTS) {
TooltipButton(
description = stringResource(R.string.home_button_dive_spots),
icon = Icons.Filled.Map,
onClick = onShowDiveSpots,
)
}
},
floatingActionButton = {
FloatingActionButton(onClick = onShowAdd) {
Expand Down

0 comments on commit 4bb34d6

Please sign in to comment.