Quality
This commit is contained in:
parent
c871dc2492
commit
1f2b2df469
4 changed files with 3 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ import androidx.compose.runtime.Composable
|
|||
|
||||
interface DirectLogoutView {
|
||||
@Composable
|
||||
fun render(
|
||||
fun Render(
|
||||
state: DirectLogoutState,
|
||||
onSuccessLogout: (logoutUrlResult: String?) -> Unit
|
||||
)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import javax.inject.Inject
|
|||
@ContributesBinding(SessionScope::class)
|
||||
class DefaultDirectLogoutView @Inject constructor() : DirectLogoutView {
|
||||
@Composable
|
||||
override fun render(
|
||||
override fun Render(
|
||||
state: DirectLogoutState,
|
||||
onSuccessLogout: (logoutUrlResult: String?) -> Unit,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ import app.cash.molecule.moleculeFlow
|
|||
import app.cash.turbine.test
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import io.element.android.features.logout.api.direct.DirectLogoutEvents
|
||||
import io.element.android.features.logout.api.direct.DirectLogoutPresenter
|
||||
import io.element.android.features.logout.api.direct.DirectLogoutState
|
||||
import io.element.android.libraries.architecture.Async
|
||||
import io.element.android.libraries.featureflag.api.FeatureFlags
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ class PreferencesRootNode @AssistedInject constructor(
|
|||
onSignOutClicked = this::onSignOutClicked,
|
||||
)
|
||||
|
||||
directLogoutView.render(
|
||||
directLogoutView.Render(
|
||||
state = state.directLogoutState,
|
||||
onSuccessLogout = {
|
||||
onSuccessLogout(activity, it)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue