Skip to content

Commit bf50476

Browse files
committed
Fix warning: Composable functions should only be emitting content into the composition from one source at their top level.
1 parent ea9c7f5 commit bf50476

File tree

1 file changed

+2
-1
lines changed
  • libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components

1 file changed

+2
-1
lines changed

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/Button.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import androidx.compose.foundation.BorderStroke
2020
import androidx.compose.foundation.interaction.MutableInteractionSource
2121
import androidx.compose.foundation.layout.Arrangement
2222
import androidx.compose.foundation.layout.Column
23+
import androidx.compose.foundation.layout.ColumnScope
2324
import androidx.compose.foundation.layout.IntrinsicSize
2425
import androidx.compose.foundation.layout.PaddingValues
2526
import androidx.compose.foundation.layout.Row
@@ -379,7 +380,7 @@ private fun ButtonCombinationPreview(
379380
}
380381

381382
@Composable
382-
private fun ButtonMatrixPreview(
383+
private fun ColumnScope.ButtonMatrixPreview(
383384
style: ButtonStyle,
384385
size: ButtonSize,
385386
destructive: Boolean,

0 commit comments

Comments
 (0)