Skip to content

Commit

Permalink
fest(festival): 7 이하는 분홍색으로 표시한다
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongHoonC committed Apr 3, 2024
1 parent 0fdcc44 commit f37d533
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ArtistDetailFestivalViewHolder(private val binding: ItemArtistDetailFestiv
)
}

LocalDate.now() == item.startDate.minusDays(1) -> {
LocalDate.now() >= item.startDate.minusDays(7) -> {
dDayView.text = context.getString(
R.string.artist_detail_tv_dday_format,
item.startDate.compareTo(LocalDate.now()).toString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class FestivalListFestivalViewHolder(
)
}

LocalDate.now() == item.startDate.minusDays(1) -> {
LocalDate.now() >= item.startDate.minusDays(7) -> {
dDayView.setTextColor(context.getColor(R.color.background_gray_01))
dDayView.text = context.getString(
R.string.festival_list_tv_dday_format,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.festago.festago.presentation.ui.schooldetail.uistate.FestivalItemUiSt
import java.time.LocalDate

class SchoolDetailFestivalViewHolder(
private val binding: ItemSchoolDetailFestivalBinding
private val binding: ItemSchoolDetailFestivalBinding,
) : RecyclerView.ViewHolder(binding.root) {
private val artistAdapter = ArtistAdapter()

Expand Down Expand Up @@ -46,7 +46,7 @@ class SchoolDetailFestivalViewHolder(
)
}

LocalDate.now() == item.startDate.minusDays(1) -> {
LocalDate.now() >= item.startDate.minusDays(7) -> {
dDayView.setTextColor(context.getColor(R.color.background_gray_01))
dDayView.text = context.getString(
R.string.festival_list_tv_dday_format,
Expand Down

0 comments on commit f37d533

Please sign in to comment.