Skip to content

Commit

Permalink
Simplify if
Browse files Browse the repository at this point in the history
  • Loading branch information
voruti committed Mar 31, 2023
1 parent 50b060e commit 0083a77
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ fun ToolbarComponent(
) {
TopAppBar(
modifier = modifier,
navigationIcon = if (onBackNavigation != null) {
navigationIcon = onBackNavigation?.let {
{
IconButton(onClick = onBackNavigation) {
IconButton(onClick = it) {
Icon(Icons.Default.ArrowBack, contentDescription = stringResource(id = R.string.back_icon))
}
}
} else null,
},
title = { Text(text = title) },
actions = {
onSettingsClick?.let {
Expand Down

0 comments on commit 0083a77

Please sign in to comment.