1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-25 04:22:30 +01:00

Rm redundant Surface

This commit is contained in:
Isira Seneviratne 2024-06-26 07:36:11 +05:30
parent 5e7e14ee4d
commit 909d214002

View File

@ -36,7 +36,6 @@ import org.schabi.newpipe.util.image.ImageStrategy
fun CommentRepliesHeader(comment: CommentsInfoItem) {
val context = LocalContext.current
Surface(color = MaterialTheme.colorScheme.background) {
Column(modifier = Modifier.padding(all = 8.dp)) {
Row(
modifier = Modifier.fillMaxWidth(),
@ -112,7 +111,6 @@ fun CommentRepliesHeader(comment: CommentsInfoItem) {
)
}
}
}
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
@ -127,6 +125,8 @@ fun CommentRepliesHeaderPreview() {
)
AppTheme {
Surface(color = MaterialTheme.colorScheme.background) {
CommentRepliesHeader(comment)
}
}
}