Skip to content

Commit

Permalink
Fix ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderZhu committed Nov 20, 2023
1 parent efe8c72 commit cff336e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package org.hyperskill.app.android.challenge.ui
object ChallengeCardPreviewValues {
const val TITLE = "Advent Streak Challenge"
const val DATE_TEXT = "6 Oct - 12 Oct"
/*ktlint-disable*/
const val DESCRIPTION = "Get ready to push your limits! Thrilling daily programming competition designed to test your coding skills and problem-solving abilities. What to Expect"
const val TIME_TITLE = "Start in"
const val TIME_SUBTITLE = "6 hrs 27 mins"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private fun Modifier.applyStatusModifiers(status: ProgressStatus): Modifier =
when (status) {
ProgressStatus.COMPLETED ->
background(colorResource(id = R.color.color_primary))
ProgressStatus.MISSED, ProgressStatus.INACTIVE->
ProgressStatus.MISSED, ProgressStatus.INACTIVE ->
background(colorResource(id = R.color.color_on_surface_alpha_9))
ProgressStatus.ACTIVE ->
background(colorResource(id = R.color.color_on_surface_alpha_9))
Expand All @@ -102,14 +102,12 @@ private fun Modifier.applyStatusModifiers(status: ProgressStatus): Modifier =
color = colorResource(id = R.color.color_primary),
shape = RoundedCornerShape(4.dp)
)

}
}

private class ChallengeProgressItemPreviewProvider : PreviewParameterProvider<ProgressStatus> {
override val values: Sequence<ProgressStatus>
get() = ProgressStatus.values().asSequence()

}

@Preview(showBackground = true)
Expand Down

0 comments on commit cff336e

Please sign in to comment.