Skip to content

Commit

Permalink
Simplify a line of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreckYe committed Nov 11, 2024
1 parent 38b4852 commit 48b0806
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import com.huanshankeji.compose.foundation.layout.size
import com.huanshankeji.compose.ui.Modifier
import com.huanshankeji.compose.ui.PlatformModifier

@Composable
private fun (@Composable (() -> Unit)).toRowScopeContent(
Expand All @@ -18,7 +19,7 @@ private fun (@Composable (() -> Unit)).toRowScopeContent(

@Composable
fun Spacer() =
Spacer(androidx.compose.ui.Modifier.size(8.dp))
Spacer(PlatformModifier.size(8.dp))

if (icon === null)
this@toRowScopeContent()
Expand Down

0 comments on commit 48b0806

Please sign in to comment.