mirror of
https://github.com/Steffo99/twom.git
synced 2024-11-25 01:24:24 +00:00
Fix "Create a new happening" not being cancellable
This commit is contained in:
parent
06f7ddf62b
commit
2ce3f4745d
2 changed files with 5 additions and 3 deletions
|
@ -17,7 +17,9 @@ fun CreateActivityScaffold(
|
|||
TwoMTheme {
|
||||
Scaffold(
|
||||
topBar = {
|
||||
CreateActivityTopBar()
|
||||
CreateActivityTopBar(
|
||||
onClickBack = onClickBack,
|
||||
)
|
||||
},
|
||||
content = {
|
||||
CreateActivityContent(
|
||||
|
|
|
@ -18,12 +18,12 @@ import eu.steffo.twom.R
|
|||
@Preview
|
||||
fun CreateActivityTopBar(
|
||||
modifier: Modifier = Modifier,
|
||||
onBack: () -> Unit = {},
|
||||
onClickBack: () -> Unit = {},
|
||||
) {
|
||||
TopAppBar(
|
||||
modifier = modifier,
|
||||
navigationIcon = {
|
||||
IconButton(onClick = onBack) {
|
||||
IconButton(onClick = onClickBack) {
|
||||
Icon(
|
||||
imageVector = Icons.Filled.ArrowBack,
|
||||
contentDescription = LocalContext.current.getString(R.string.back)
|
||||
|
|
Loading…
Reference in a new issue