File tree Expand file tree Collapse file tree
core/common/src/main/kotlin/com/ninecraft/booket/core/common/extensions
feature/detail/src/main/kotlin/com/ninecraft/booket/feature/detail/book Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.ninecraft.booket.core.common.extensions
22
3- import androidx.compose.runtime.Composable
43import androidx.compose.ui.graphics.Color
54import com.ninecraft.booket.core.model.Emotion
65
7- @Composable
86fun Emotion.toTextColor (): Color {
97 return when (this ) {
108 Emotion .WARM -> Color (0xFFE3931B )
@@ -14,7 +12,6 @@ fun Emotion.toTextColor(): Color {
1412 }
1513}
1614
17- @Composable
1815fun Emotion.toBackgroundColor (): Color {
1916 return when (this ) {
2017 Emotion .WARM -> Color (0xFFFFF5D3 )
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ sealed interface BookDetailUiEvent : CircuitUiEvent {
8686}
8787
8888enum class RecordSort (val value : String ) {
89- PAGE_ASCENDING (" BEFORE_READING " ),
90- RECENT_REGISTER (" READING " ),
89+ PAGE_ASCENDING (" PAGE_ASCENDING " ),
90+ RECENT_REGISTER (" RECENT_REGISTER " ),
9191 ;
9292
9393 fun getDisplayNameRes (): Int {
You can’t perform that action at this time.
0 commit comments