Skip to content

Commit bf86fc9

Browse files
committed
center icon
1 parent d1e732c commit bf86fc9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/com/cornellappdev/score/components/ButtonPrimary.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ fun ButtonPrimary(
3939
.height(24.dp),
4040
colorFilter = ColorFilter.tint(White)
4141
)
42-
Spacer(modifier = Modifier.width(8.dp))
42+
if (text.isNotEmpty()) {
43+
Spacer(modifier = Modifier.width(8.dp))
44+
}
4345
}
4446
Text(text = text, style = bodyMedium.copy(color = White))
4547
}

0 commit comments

Comments
 (0)