Code quality.
This commit is contained in:
parent
b136e504b2
commit
039eda038e
3 changed files with 4 additions and 4 deletions
|
|
@ -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 -> {
|
||||||
|
|
|
||||||
|
|
@ -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 = "You’re signed out",
|
title = "You’re 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(
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue