Skip to content

Commit

Permalink
ClickAwayListener: Fix named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed Jan 21, 2024
1 parent a1e627a commit a5d451b
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 @@ -852,7 +852,7 @@ private fun findComponent(
else -> propsName
}

val jsNameAnnotation = if ("export " in content && "default " in content) {
val jsNameAnnotation = if ("export default" in content || "export { default " in content) {
JS_NAME_DEFAULT
} else {
""
Expand Down
1 change: 0 additions & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/base/ClickAwayListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ external interface ClickAwayListenerProps : react.PropsWithChildren {
*
* - [ClickAwayListener API](https://mui.com/base-ui/react-click-away-listener/components-api/#click-away-listener)
*/
@JsName("default")
external val ClickAwayListener: react.FC<ClickAwayListenerProps>

0 comments on commit a5d451b

Please sign in to comment.