-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT/#15] CenterAlignedTopAppBar로 변경하여 구현
- Loading branch information
Showing
5 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
feature/src/main/java/com/terning/feature/component/topappbar/BackWithTitleTopAppBar.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.terning.feature.component.topappbar | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
fun BackWithTitleTopAppBar(title: String, onBackButtonClick: () -> Unit) { | ||
TerningTopAppBar( | ||
title = title, | ||
showBackButton = true, | ||
onBackButtonClick = { onBackButtonClick.invoke() }) | ||
} |
10 changes: 10 additions & 0 deletions
10
feature/src/main/java/com/terning/feature/component/topappbar/BackWithoutTitleTopAppBar.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.terning.feature.component.topappbar | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
fun BackWithTitleTopAppBar(onBackButtonClick: () -> Unit) { | ||
TerningTopAppBar( | ||
showBackButton = true, | ||
onBackButtonClick = { onBackButtonClick.invoke() }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ class MainNavigator( | |
} | ||
} | ||
|
||
private fun navigateUp() { | ||
fun navigateUp() { | ||
navController.navigateUp() | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters