mirror of
https://github.com/Steffo99/twom.git
synced 2025-02-16 16:23:57 +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 {
|
TwoMTheme {
|
||||||
Scaffold(
|
Scaffold(
|
||||||
topBar = {
|
topBar = {
|
||||||
CreateActivityTopBar()
|
CreateActivityTopBar(
|
||||||
|
onClickBack = onClickBack,
|
||||||
|
)
|
||||||
},
|
},
|
||||||
content = {
|
content = {
|
||||||
CreateActivityContent(
|
CreateActivityContent(
|
||||||
|
|
|
@ -18,12 +18,12 @@ import eu.steffo.twom.R
|
||||||
@Preview
|
@Preview
|
||||||
fun CreateActivityTopBar(
|
fun CreateActivityTopBar(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
onBack: () -> Unit = {},
|
onClickBack: () -> Unit = {},
|
||||||
) {
|
) {
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
navigationIcon = {
|
navigationIcon = {
|
||||||
IconButton(onClick = onBack) {
|
IconButton(onClick = onClickBack) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Filled.ArrowBack,
|
imageVector = Icons.Filled.ArrowBack,
|
||||||
contentDescription = LocalContext.current.getString(R.string.back)
|
contentDescription = LocalContext.current.getString(R.string.back)
|
||||||
|
|
Loading…
Add table
Reference in a new issue