implement review comments

This commit is contained in:
callebtc
2025-10-18 14:08:39 +02:00
parent 78d742e54f
commit 7fa72ea1ea
2 changed files with 3 additions and 1 deletions
@@ -51,7 +51,7 @@ fun LocationNotesButton(
// Only show in mesh mode when location is authorized (iOS pattern) // Only show in mesh mode when location is authorized (iOS pattern)
if (selectedLocationChannel is ChannelID.Mesh && locationEnabled) { if (selectedLocationChannel is ChannelID.Mesh && locationEnabled) {
val hasNotes = (notesCount ?: 0) > 0 val hasNotes = notesCount > 0
IconButton( IconButton(
onClick = onClick, onClick = onClick,
modifier = modifier.size(24.dp) modifier = modifier.size(24.dp)
@@ -62,8 +62,10 @@ private fun LocationNotesErrorSheet(
onDismiss: () -> Unit, onDismiss: () -> Unit,
locationManager: LocationChannelManager locationManager: LocationChannelManager
) { ) {
val sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true)
ModalBottomSheet( ModalBottomSheet(
onDismissRequest = onDismiss, onDismissRequest = onDismiss,
sheetState = sheetState,
containerColor = MaterialTheme.colorScheme.surface containerColor = MaterialTheme.colorScheme.surface
) { ) {
Column( Column(