Skip to content

Commit

Permalink
#11 [chore] : string 추출
Browse files Browse the repository at this point in the history
  • Loading branch information
chanubc committed Apr 19, 2024
1 parent c7acb82 commit 24c825b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,28 @@ import com.sopt.now.compose.R
import com.sopt.now.compose.feature.util.KeyStorage

sealed class BottomNavItem(
val label: String,
val label: Int,
@DrawableRes val icon: Int,
val screenRoute: String
) {
data object Home :
BottomNavItem("", R.drawable.ic_home_black_24, KeyStorage.HOME)
BottomNavItem(
R.string.nav_home,
R.drawable.ic_home_black_24,
KeyStorage.HOME
)

data object Search :
BottomNavItem("검색", R.drawable.ic_search_gray_24, KeyStorage.SEARCH)
BottomNavItem(
R.string.nav_search,
R.drawable.ic_search_gray_24,
KeyStorage.SEARCH
)

data object MyPage :
BottomNavItem("마이", R.drawable.ic_my_page_black_24, KeyStorage.MY_PAGE)
BottomNavItem(
R.string.nav_my_page,
R.drawable.ic_my_page_black_24,
KeyStorage.MY_PAGE
)
}
6 changes: 6 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@
<string name="sign_up_nickname_input_hint">닉네임을 입력해 주세요</string>
<string name="sign_up_mbti_input_hint">mbti를 입력해 주세요</string>
<string name="sign_up_btn">회원가입 하기</string>
<string name="nav_home">홈</string>
<string name="nav_search">검색</string>
<string name="nav_my_page">마이</string>
<!-- 홈화면-->
<string name="home_birth_friend">생일인 친구</string>
<string name="home_firends">친구</string>
</resources>

0 comments on commit 24c825b

Please sign in to comment.