fix: compile warnings
Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
parent
c0d270b1a8
commit
de37d14139
|
|
@ -22,6 +22,7 @@ import androidx.compose.material3.Text
|
|||
import androidx.compose.material3.TextButton
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableIntStateOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
|
|
@ -56,7 +57,7 @@ import java.net.URI
|
|||
class AboutViewModel(
|
||||
) : ViewModel() {
|
||||
var root by mutableStateOf<Root?>(null)
|
||||
var selectedTabIndex by mutableStateOf(0)
|
||||
var selectedTabIndex by mutableIntStateOf(0)
|
||||
|
||||
fun getDebugInformation(): Map<String, String> {
|
||||
return mapOf(
|
||||
|
|
|
|||
|
|
@ -350,10 +350,7 @@ fun ChatRouterScreen(topNav: NavController, viewModel: ChatRouterViewModel = hil
|
|||
) {
|
||||
UserContextSheet(
|
||||
userId = userContextSheetTarget,
|
||||
serverId = userContextSheetServer,
|
||||
onHideSheet = {
|
||||
userContextSheetState.hide()
|
||||
}
|
||||
serverId = userContextSheetServer
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,8 +38,7 @@ import chat.revolt.components.screens.settings.RawUserOverview
|
|||
@Composable
|
||||
fun UserContextSheet(
|
||||
userId: String,
|
||||
serverId: String? = null,
|
||||
onHideSheet: suspend () -> Unit,
|
||||
serverId: String? = null
|
||||
) {
|
||||
val user = RevoltAPI.userCache[userId]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue