|
|
@ -80,6 +80,7 @@ fun JoinRoomView( |
|
|
|
onBackClick: () -> Unit, |
|
|
|
onBackClick: () -> Unit, |
|
|
|
onJoinSuccess: () -> Unit, |
|
|
|
onJoinSuccess: () -> Unit, |
|
|
|
onKnockSuccess: () -> Unit, |
|
|
|
onKnockSuccess: () -> Unit, |
|
|
|
|
|
|
|
onCancelKnockSuccess: () -> Unit, |
|
|
|
modifier: Modifier = Modifier, |
|
|
|
modifier: Modifier = Modifier, |
|
|
|
) { |
|
|
|
) { |
|
|
|
Box( |
|
|
|
Box( |
|
|
@ -139,7 +140,7 @@ fun JoinRoomView( |
|
|
|
) |
|
|
|
) |
|
|
|
AsyncActionView( |
|
|
|
AsyncActionView( |
|
|
|
async = state.cancelKnockAction, |
|
|
|
async = state.cancelKnockAction, |
|
|
|
onSuccess = { state.eventSink(JoinRoomEvents.ClearActionStates) }, |
|
|
|
onSuccess = { onCancelKnockSuccess() }, |
|
|
|
onErrorDismiss = { state.eventSink(JoinRoomEvents.ClearActionStates) }, |
|
|
|
onErrorDismiss = { state.eventSink(JoinRoomEvents.ClearActionStates) }, |
|
|
|
confirmationDialog = { |
|
|
|
confirmationDialog = { |
|
|
|
ConfirmationDialog( |
|
|
|
ConfirmationDialog( |
|
|
@ -464,5 +465,6 @@ internal fun JoinRoomViewPreview(@PreviewParameter(JoinRoomStateProvider::class) |
|
|
|
onBackClick = { }, |
|
|
|
onBackClick = { }, |
|
|
|
onJoinSuccess = { }, |
|
|
|
onJoinSuccess = { }, |
|
|
|
onKnockSuccess = { }, |
|
|
|
onKnockSuccess = { }, |
|
|
|
|
|
|
|
onCancelKnockSuccess = { }, |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|