Skip to content

Commit

Permalink
Remove redundant JS_NAME_DEFAULT cleanup in pickers
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed Jan 21, 2024
1 parent a5d451b commit 67ecd95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/karakum/mui/Converter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package karakum.mui

import java.io.File

internal const val JS_NAME_DEFAULT = "@JsName(\"default\")\n"
private const val JS_NAME_DEFAULT = "@JsName(\"default\")\n"

internal data class ConversionResult(
val main: String,
Expand Down
1 change: 0 additions & 1 deletion buildSrc/src/main/kotlin/karakum/mui/Generator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,6 @@ private fun generate(
if (componentName != "CalendarPickerView" && componentName != "createTypography") {
val finalBody = when {
componentName == "createTransitions" -> body + "\n\n" + STYLE_TRANSITION_CREATE_OPTIONS
pkg == Package.pickers -> body.replace(JS_NAME_DEFAULT, "")
else -> body
}

Expand Down

0 comments on commit 67ecd95

Please sign in to comment.