style: fix ktlint errors in Navigation.kt

This commit is contained in:
ronia authored and M57 committed 2026-06-19 12:19:29 +03:00
1 parent 0038606c05
commit a2c9bb638a
1 file changed
+9 -7
@@ -45,8 +45,8 @@ import androidx.compose.material3.NavigationDrawerItemDefaults
import androidx.compose.material3.Scaffold import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text import androidx.compose.material3.Text
import androidx.compose.material3.rememberDrawerState import androidx.compose.material3.rememberDrawerState
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember import androidx.compose.runtime.remember
@@ -201,12 +201,14 @@ fun MainNavigation() {
) { ) {
// Brand header with connection status // Brand header with connection status
val connectionStatus by HermesWsClient.connectionStatus.collectAsState() val connectionStatus by HermesWsClient.connectionStatus.collectAsState()
val statusColor = when (connectionStatus) { val statusColor =
ConnectionStatus.CONNECTED -> Color(0xFF4CAF50) // green when (connectionStatus) {
ConnectionStatus.CONNECTING, ConnectionStatus.CONNECTED -> Color(0xFF4CAF50) // green
ConnectionStatus.RECONNECTING -> Color(0xFFFFC107) // yellow ConnectionStatus.CONNECTING,
ConnectionStatus.DISCONNECTED -> Color(0xFFF44336) // red ConnectionStatus.RECONNECTING,
} -> Color(0xFFFFC107) // yellow
ConnectionStatus.DISCONNECTED -> Color(0xFFF44336) // red
}
Row( Row(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.padding(start = 20.dp, top = 20.dp, end = 16.dp, bottom = 4.dp), modifier = Modifier.padding(start = 20.dp, top = 20.dp, end = 16.dp, bottom = 4.dp),