Skip to content

Commit

Permalink
[FIX/#268] 그림자 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
boiledEgg-s committed Sep 26, 2024
1 parent ed9d07f commit bc63f9e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import com.terning.feature.calendar.list.component.CalendarScrapList
import com.terning.feature.calendar.list.model.CalendarListUiState
import com.terning.feature.dialog.cancel.ScrapCancelDialog
import com.terning.feature.dialog.detail.ScrapDialog
import okhttp3.internal.toImmutableList
import java.time.LocalDate

@Composable
Expand Down Expand Up @@ -175,7 +176,7 @@ private fun CalendarListScreen(
)

CalendarScrapList(
scrapList = scrapMap[dateInKorean].orEmpty(),
scrapList = scrapMap[dateInKorean].orEmpty().toImmutableList(),
onScrapButtonClicked = onClickScrapButton,
onInternshipClicked = onClickInternship,
isFromList = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ fun CalendarScrap(
onInternshipClicked(scrap)
},
cornerRadius = 10.dp,
scrapColor = Color(android.graphics.Color.parseColor(scrap.color)),
elevation = 1.dp,
scrapColor = Color(android.graphics.Color.parseColor(scrap.color))
) {
InternItem(
scrapId = scrap.internshipAnnouncementId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.terning.feature.calendar.list.component
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
Expand All @@ -21,7 +22,7 @@ internal fun CalendarScrapList(
val scrollState = rememberScrollState()
val topModifier = modifier.then(
if (!isFromList) {
Modifier.verticalScroll(scrollState)
Modifier.verticalScroll(scrollState).padding(top = 15.dp)
} else {
Modifier
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private fun CalendarWeekScreen(
color = Black,
modifier = Modifier
.fillMaxWidth()
.padding(start = 24.dp, top = 16.dp, bottom = 15.dp)
.padding(start = 24.dp, top = 16.dp)
)

when (uiState.loadState) {
Expand All @@ -203,7 +203,6 @@ private fun CalendarWeekScreen(
is UiState.Success -> {
CalendarWeekSuccess(
scrapList = uiState.loadState.data.toImmutableList(),
selectedDate = selectedDate,
onScrapButtonClicked = onClickScrapButton,
onInternshipClicked = onClickInternship
)
Expand Down Expand Up @@ -241,7 +240,6 @@ private fun CalendarWeekSuccess(
scrapList: List<CalendarScrapDetail>,
onScrapButtonClicked: (Long) -> Unit,
onInternshipClicked: (CalendarScrapDetail) -> Unit,
selectedDate: LocalDate,
) {
CalendarScrapList(
scrapList = scrapList,
Expand Down

0 comments on commit bc63f9e

Please sign in to comment.