Skip to content

Commit

Permalink
refactor: apply ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
ImaginativeShohag committed Dec 30, 2024
1 parent 7a21e78 commit 287a5e5
Show file tree
Hide file tree
Showing 22 changed files with 196 additions and 189 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ sealed class UIsScreen(val route: String) {
data object UiMapView : UIsScreen("ui/mapview")
data object UiMapViewDetails : UIsScreen("ui/mapview/details?item={item}") {
const val PARAM_ITEM = "item"
fun createRoute(item: MapPlace) =
route.replace("{$PARAM_ITEM}", item.getJsonFromObj() ?: "")
fun createRoute(item: MapPlace) = route.replace("{$PARAM_ITEM}", item.getJsonFromObj() ?: "")
}

data object UiOtpCodeVerify : UIsScreen("ui/otpcodeverify")
Expand Down Expand Up @@ -253,8 +252,7 @@ sealed class TutorialsScreen(val route: String) {
data object TutorialNavDataPassScreen1 :
TutorialsScreen("tutorial/nav-data-pass/one/{data}") {
const val PARAM_DATA = "data"
fun createRoute(item: DemoData) =
route.replace("{$PARAM_DATA}", item.getJsonFromObj() ?: "")
fun createRoute(item: DemoData) = route.replace("{$PARAM_DATA}", item.getJsonFromObj() ?: "")
}

data object TutorialNavDataPassScreen2 : TutorialsScreen("tutorial/nav-data-pass/two") {
Expand All @@ -266,10 +264,9 @@ sealed class TutorialsScreen(val route: String) {
const val PARAM_ID = "id"
const val PARAM_NAME = "name"

fun createRoute(id: Int, name: String) =
route
.replace("{$PARAM_ID}", "$id")
.replace("{$PARAM_NAME}", name)
fun createRoute(id: Int, name: String) = route
.replace("{$PARAM_ID}", "$id")
.replace("{$PARAM_NAME}", name)
}

data object TutorialNavDataPassScreen4 :
Expand All @@ -280,9 +277,8 @@ sealed class TutorialsScreen(val route: String) {
const val ARG_NAME = "name"
const val ARG_RANKS = "ranks"

fun createRoute(id: Int) =
route
.replace("{$PARAM_ID}", "$id")
fun createRoute(id: Int) = route
.replace("{$PARAM_ID}", "$id")
}

data object TutorialNavDataPassScreen5 :
Expand Down
Loading

0 comments on commit 287a5e5

Please sign in to comment.