Handle remarks from PR #1127

This commit is contained in:
Benoit Marty 2023-08-23 17:23:12 +02:00
parent 14c568dea2
commit c84b1747e7
4 changed files with 12 additions and 9 deletions

View file

@ -34,7 +34,7 @@ import io.element.android.libraries.designsystem.preview.ElementPreviewLight
@Composable
fun LogoutPreferenceView(
state: LogoutPreferenceState,
onSuccessLogout: (String?) -> Unit = {}
onSuccessLogout: (logoutUrlResult: String?) -> Unit
) {
val eventSink = state.eventSink
if (state.logoutAction is Async.Success) {
@ -96,5 +96,8 @@ internal fun LogoutPreferenceViewDarkPreview() = ElementPreviewDark { ContentToP
@Composable
private fun ContentToPreview() {
LogoutPreferenceView(aLogoutPreferenceState())
LogoutPreferenceView(
aLogoutPreferenceState(),
onSuccessLogout = {}
)
}