1
Fork 0
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:
Steffo 2023-12-07 03:35:21 +01:00
parent 06f7ddf62b
commit 2ce3f4745d
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 5 additions and 3 deletions

View file

@ -17,7 +17,9 @@ fun CreateActivityScaffold(
TwoMTheme {
Scaffold(
topBar = {
CreateActivityTopBar()
CreateActivityTopBar(
onClickBack = onClickBack,
)
},
content = {
CreateActivityContent(

View file

@ -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)