Remove default value for lambda.
We enforce a value to be provided and it's better for code coverage.
This commit is contained in:
parent
9520e35374
commit
ae0c3edd24
49 changed files with 424 additions and 225 deletions
|
|
@ -68,8 +68,8 @@ import io.element.android.libraries.ui.strings.CommonStrings
|
|||
@Composable
|
||||
fun SendLocationView(
|
||||
state: SendLocationState,
|
||||
navigateUp: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
navigateUp: () -> Unit = {},
|
||||
) {
|
||||
LaunchedEffect(Unit) {
|
||||
state.eventSink(SendLocationEvents.RequestPermissions)
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ import kotlinx.collections.immutable.toImmutableMap
|
|||
@Composable
|
||||
fun ShowLocationView(
|
||||
state: ShowLocationState,
|
||||
onBackPressed: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
onBackPressed: () -> Unit = {},
|
||||
) {
|
||||
when (state.permissionDialog) {
|
||||
ShowLocationState.Dialog.None -> Unit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue