mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Code quality.
This commit is contained in:
committed by
Benoit Marty
parent
7e77e6e063
commit
c3a0deb201
@@ -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
-1
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user