File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
feature-add/src/main/java/com/hoc/flowmvi/ui/add Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,17 @@ internal fun AddNewUserRoute(
139139@Composable
140140@OptIn(ExperimentalMaterial3Api ::class )
141141private 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"
You can’t perform that action at this time.
0 commit comments