Skip to content

Commit

Permalink
[FEATURE] #63 : 로그인 하러 가기 String Value로 추출
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Dec 23, 2023
1 parent a98bdbc commit cce59fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ internal fun ProfileRoute(
@Composable
internal fun ProfileScreen(
role: Role = Role.GUEST,
userName: String = "",
navigateToProfileSetting: () -> Unit,
navigateToSignInScreen: () -> Unit,
) {
Expand Down Expand Up @@ -80,7 +81,7 @@ internal fun ProfileScreen(
)
}

WappProfileCard(role = role, userName = "태규")
WappProfileCard(role = role, userName = userName)

if (role == Role.GUEST) {
GuestModeScreen(navigateToSignInScreen = navigateToSignInScreen)
Expand Down Expand Up @@ -113,7 +114,7 @@ private fun GuestModeScreen(navigateToSignInScreen: () -> Unit) {
.clickable { navigateToSignInScreen() },
) {
Text(
text = "로그인 하러 가기",
text = stringResource(id = R.string.navigate_to_login),
style = WappTheme.typography.contentMedium,
color = WappTheme.colors.white,
textAlign = TextAlign.Center,
Expand Down
1 change: 1 addition & 0 deletions feature/profile/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
<string name="faq">FAQ</string>
<string name="terms_and_policies">약관 및 정책</string>
<string name="privacy_policy">개인정보 처리 방침</string>
<string name="navigate_to_login">로그인 하러 가기</string>
</resources>

0 comments on commit cce59fe

Please sign in to comment.