add @Deprecated on MainButton.onClick(EventHandler)

This commit is contained in:
SuLG-k committed 2024-07-11 20:35:22 +07:00
1 parent 016cfcb7cd
commit 40613e3418
1 file changed
+1
@@ -36,6 +36,7 @@ data class MainButtonParams(
val isVisible: Boolean? = null val isVisible: Boolean? = null
) )
@Deprecated(message="Use onClick without EventHandler")
fun MainButton.onClick(eventHandler: EventHandler) = onClick { fun MainButton.onClick(eventHandler: EventHandler) = onClick {
val that = js("this").unsafeCast<WebApp>() val that = js("this").unsafeCast<WebApp>()
that.eventHandler() that.eventHandler()