Skip to content

Commit 8db2f7d

Browse files
committed
feat(add-new-user): wip
1 parent a4bb195 commit 8db2f7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

feature-add/src/main/java/com/hoc/flowmvi/ui/add/AddNewUserScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@ internal fun AddNewUserRoute(
139139
@Composable
140140
@OptIn(ExperimentalMaterial3Api::class)
141141
private fun ConfigAppBar(
142-
currentOnBackClickState: State<() -> Unit>,
142+
onBackClickState: State<() -> Unit>,
143143
configAppBar: ConfigAppBar
144144
) {
145145
val title = stringResource(id = R.string.add_new_user)
146146
val colors = TopAppBarDefaults.centerAlignedTopAppBarColors()
147-
val appBarState = remember(colors) {
147+
val appBarState = remember(colors, onBackClickState) {
148148
AppBarState(
149149
title = title,
150150
actions = {},
151151
navigationIcon = {
152-
IconButton(onClick = { currentOnBackClickState.value() }) {
152+
IconButton(onClick = { onBackClickState.value() }) {
153153
Icon(
154154
imageVector = Icons.Filled.ArrowBack,
155155
contentDescription = "Back"

0 commit comments

Comments
 (0)