Skip to content

Commit

Permalink
mod/#6: MainView로 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed May 2, 2024
1 parent eb9441a commit a9e7d2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/sopt/now/compose/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class MainActivity : ComponentActivity() {
val userName = intent.getStringExtra("userName").toString()
val userDescription = intent.getStringExtra("userDescription").toString()

ScaffoldExample(
MainView(
userId = userId,
userPw = userPw,
userName = userName,
Expand All @@ -56,7 +56,7 @@ class MainActivity : ComponentActivity() {
}

@Composable
fun ScaffoldExample(userId: String, userPw: String, userName: String, userDescription: String) {
fun MainView(userId: String, userPw: String, userName: String, userDescription: String) {
var selectedItem by remember { mutableIntStateOf(0) }
val items = listOf(
BottomNavigationItem(
Expand Down Expand Up @@ -112,6 +112,6 @@ fun ScaffoldExample(userId: String, userPw: String, userName: String, userDescri
@Composable
fun MainPreview() {
NOWSOPTAndroidTheme {
ScaffoldExample("Id1234", "Password123", "UserName", "INFJ 입니다!")
MainView("Id1234", "Password123", "UserName", "ISTP 입니다!")
}
}

0 comments on commit a9e7d2d

Please sign in to comment.