Skip to content

Commit

Permalink
fix: 회원가입 출생년도 미선택 시 '0년'을 '미선택'으로 교체
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsooplus committed Feb 19, 2024
1 parent b0fb5ea commit dd7af69
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.susu.core.designsystem.component.button.SusuGhostButton
import com.susu.core.designsystem.theme.Gray60
import com.susu.core.designsystem.theme.SusuTheme
import com.susu.core.ui.Gender
import java.time.LocalDate
import com.susu.core.ui.USER_BIRTH_RANGE

@Composable
fun AdditionalContent(
Expand All @@ -36,7 +36,11 @@ fun AdditionalContent(
) {
Text(text = description, style = SusuTheme.typography.title_m)
Spacer(modifier = Modifier.height(SusuTheme.spacing.spacing_xxl))
Text(text = "성별", style = SusuTheme.typography.title_xxxs, color = Gray60)
Text(
text = stringResource(id = com.susu.core.ui.R.string.word_gender),
style = SusuTheme.typography.title_xxxs,
color = Gray60,
)
Spacer(modifier = Modifier.height(SusuTheme.spacing.spacing_xxs))
Row(
modifier = Modifier.fillMaxWidth(),
Expand Down Expand Up @@ -65,10 +69,14 @@ fun AdditionalContent(
Text(text = stringResource(com.susu.core.ui.R.string.word_birth), style = SusuTheme.typography.title_xxxs, color = Gray60)
SusuGhostButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(
id = com.susu.core.designsystem.R.string.word_year_format,
if (selectedYear < 0) LocalDate.now().year else selectedYear,
),
text = if (selectedYear in USER_BIRTH_RANGE) {
stringResource(
id = com.susu.core.designsystem.R.string.word_year_format,
selectedYear,
)
} else {
stringResource(id = com.susu.core.designsystem.R.string.word_not_select)
},
color = GhostButtonColor.Black,
style = MediumButtonStyle.height60,
isClickable = true,
Expand Down

0 comments on commit dd7af69

Please sign in to comment.