Skip to content

Commit

Permalink
[fix/#841] onIconClick -> onNavigationIconClick
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Sep 25, 2024
1 parent 52dbd50 commit a247848
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import org.sopt.official.feature.mypage.R
@Composable
fun MyPageTopBar(
@StringRes title: Int,
onIconClick: () -> Unit,
onNavigationIconClick: () -> Unit,
modifier: Modifier = Modifier
) {
CenterAlignedTopAppBar(
Expand All @@ -54,7 +54,7 @@ fun MyPageTopBar(
)
},
navigationIcon = {
IconButton(onClick = onIconClick) {
IconButton(onClick = onNavigationIconClick) {
Icon(
painterResource(R.drawable.btn_arrow_left),
contentDescription = "navigation icon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class MyPageActivity : AppCompatActivity() {
topBar = {
MyPageTopBar(
title = R.string.toolbar_mypage,
onIconClick = { onBackPressedDispatcher.onBackPressed() }
onNavigationIconClick = { onBackPressedDispatcher.onBackPressed() }
)
}
) { innerPadding ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SignOutActivity : AppCompatActivity() {
topBar = {
MyPageTopBar(
title = R.string.toolbar_sign_out,
onIconClick = { onBackPressedDispatcher.onBackPressed() }
onNavigationIconClick = { onBackPressedDispatcher.onBackPressed() }
)
}
) { innerPadding ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class AdjustSentenceActivity : AppCompatActivity() {
topBar = {
MyPageTopBar(
title = R.string.toolbar_adjust_sentence,
onIconClick = { onBackPressedDispatcher.onBackPressed() }
onNavigationIconClick = { onBackPressedDispatcher.onBackPressed() }
)
}
) { innerPadding ->
Expand Down

0 comments on commit a247848

Please sign in to comment.