Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ data class CollectionCreateRequestDto(
val isSpoiler: Boolean,
@SerialName("reason")
val reason: String,
@SerialName("imageUrls")
val imageUrls: List<String> = emptyList(),
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ private fun CollectionCreateContentModel.toDto(): CollectionCreateRequestDto.Con
contentId = contentId,
isSpoiler = isSpoiler,
reason = reason,
imageUrls = imageUrls,
)

fun CollectionCreateResponseDto.toModel(): CollectionCreateModel =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ data class CollectionCreateContentModel(
val contentId: String,
val isSpoiler: Boolean,
val reason: String,
val imageUrls: List<String> = emptyList(),
)

data class CollectionCreateModel(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import com.flint.core.designsystem.theme.FlintTheme
import com.flint.domain.model.search.SearchContentItemModel
import com.flint.domain.model.search.SearchContentListModel
import com.flint.presentation.collectioncreate.component.CollectionCreateContentDeleteModal
import com.flint.presentation.collectioncreate.component.CollectionCreateContentSelect
import com.flint.presentation.collectioncreate.component.AddContentSelectItem
import kotlinx.collections.immutable.ImmutableList

@Composable
Expand Down Expand Up @@ -177,7 +177,7 @@ fun AddContentScreen(
) { content ->
val isSelected = selectedContents.any { it.id == content.id }

CollectionCreateContentSelect(
AddContentSelectItem(
onCheckClick = {
if (isSelected){
if (uiState.isCancelModalVisible) {
Expand All @@ -189,7 +189,7 @@ fun AddContentScreen(
} else onToggleContent(content)
},
isSelected = isSelected,
imageUrl = content.posterUrl,
posterImageUrl = content.posterUrl,
title = content.title,
director = content.author,
createdYear = content.year,
Expand Down
Loading
Loading