File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/button Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,14 @@ import com.ninecraft.booket.core.designsystem.ComponentPreview
3333@Composable
3434fun ReedButton (
3535 onClick : () -> Unit ,
36+ text : String ,
3637 sizeStyle : ButtonSizeStyle ,
3738 colorStyle : ReedButtonColorStyle ,
3839 modifier : Modifier = Modifier ,
3940 enabled : Boolean = true,
40- text : String = "",
4141 leadingIcon : @Composable (() -> Unit )? = null,
4242 trailingIcon : @Composable (() -> Unit )? = null,
43+ multipleEventsCutterEnabled : Boolean = true,
4344) {
4445 val multipleEventsCutter = remember { MultipleEventsCutter .get() }
4546
@@ -53,7 +54,13 @@ fun ReedButton(
5354 )
5455
5556 Button (
56- onClick = { multipleEventsCutter.processEvent { onClick() } },
57+ onClick = {
58+ if (multipleEventsCutterEnabled) {
59+ multipleEventsCutter.processEvent { onClick() }
60+ } else {
61+ onClick()
62+ }
63+ },
5764 modifier = modifier.graphicsLayer {
5865 scaleX = scale
5966 scaleY = scale
You can’t perform that action at this time.
0 commit comments