Code quality.

This commit is contained in:
Benoit Marty 2023-10-09 21:47:41 +02:00 committed by Benoit Marty
parent b136e504b2
commit 039eda038e
3 changed files with 4 additions and 4 deletions

View file

@ -107,7 +107,7 @@ class RootFlowNode @AssistedInject constructor(
onFailure = { switchToNotLoggedInFlow() } onFailure = { switchToNotLoggedInFlow() }
) )
} else { } else {
switchToSignedOutFlow(SessionId((navState.loggedInState.sessionId))) switchToSignedOutFlow(SessionId(navState.loggedInState.sessionId))
} }
} }
LoggedInState.NotLoggedIn -> { LoggedInState.NotLoggedIn -> {

View file

@ -71,7 +71,7 @@ fun SignedOutView(
} }
@Composable @Composable
fun SignedOutHeader() { private fun SignedOutHeader() {
IconTitleSubtitleMolecule( IconTitleSubtitleMolecule(
modifier = Modifier.padding(top = 60.dp, bottom = 12.dp), modifier = Modifier.padding(top = 60.dp, bottom = 12.dp),
title = "Youre signed out", title = "Youre signed out",
@ -144,7 +144,7 @@ private fun SignedOutFooter(
@PreviewsDayNight @PreviewsDayNight
@Composable @Composable
fun SignedOutViewPreview( internal fun SignedOutViewPreview(
@PreviewParameter(SignedOutStateProvider::class) state: SignedOutState, @PreviewParameter(SignedOutStateProvider::class) state: SignedOutState,
) = ElementPreview { ) = ElementPreview {
SignedOutView( SignedOutView(

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 The Matrix.org Foundation C.I.C. * Copyright (c) 2023 New Vector Ltd
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.