Skip to content

Commit

Permalink
style: Apply Spotless Format
Browse files Browse the repository at this point in the history
  • Loading branch information
8954sood committed Nov 5, 2024
1 parent 48b92fa commit 20f8254
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fun TaskCard(uiState: CommonUiState<ImmutableList<TaskModel>>, navigateToTask: (
date = "${task.dueDate!!.monthNumber}/${task.dueDate!!.dayOfMonth.toString().padStart(2, '0')}",
content = task.title,
dDay = "D" + when {
dayCnt > 0 -> "-${dayCnt}"
dayCnt > 0 -> "-$dayCnt"
dayCnt < 0 -> "+${-dayCnt}"
else -> " Day"
},
Expand Down
4 changes: 2 additions & 2 deletions feature-main/task/src/main/java/com/seugi/task/TaskScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ internal fun TaskScreen(viewModel: TaskViewModel = hiltViewModel(), popBackStack
title = it.title,
description = it.description ?: "",
dDay = "D" + when {
dayCnt > 0 -> "-${dayCnt}"
dayCnt > 0 -> "-$dayCnt"
dayCnt < 0 -> "+${-dayCnt}"
else -> " Day"
},
Expand Down Expand Up @@ -144,7 +144,7 @@ internal fun TaskScreen(viewModel: TaskViewModel = hiltViewModel(), popBackStack
title = it.title,
description = it.description ?: "",
dDay = "D" + when {
dayCnt > 0 -> "-${dayCnt}"
dayCnt > 0 -> "-$dayCnt"
dayCnt < 0 -> "+${-dayCnt}"
else -> " Day"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import com.seugi.data.task.TaskRepository
import com.seugi.task.model.CommonUiState
import com.seugi.task.model.TaskUiState
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.collections.immutable.toImmutableList
import javax.inject.Inject
import kotlinx.collections.immutable.toImmutableList
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
Expand All @@ -31,7 +31,7 @@ class TaskViewModel @Inject constructor(
classroomTaskState = CommonUiState.Success(
it.data
.sortedBy { it.dueDate }
.toImmutableList()
.toImmutableList(),
),
)
}
Expand All @@ -57,7 +57,7 @@ class TaskViewModel @Inject constructor(
workspaceTaskState = CommonUiState.Success(
it.data
.sortedBy { it.dueDate }
.toImmutableList()
.toImmutableList(),
),
)
}
Expand Down

0 comments on commit 20f8254

Please sign in to comment.