Skip to content

Commit

Permalink
#308 [ui] MainRuleList Preview 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Sep 3, 2023
1 parent 407b8d0 commit db58146
Showing 1 changed file with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,31 @@ private fun MainRuleContentPreview() {
}
}

@Preview(name = "main rule Item", showBackground = true)
@Preview(name = "general rule Item", showBackground = true)
@Composable
private fun MainRulePreview() {
private fun Preview1() {
HousTheme {
Surface {
MainRuleItem()
}
}
}

@Preview(name = "new main rule Item", showBackground = true)
@Preview(name = "Represent rule Item", showBackground = true)
@Composable
private fun NewMainRulePreview() {
private fun Preview2() {
HousTheme {
Surface {
MainRuleItem(
mainRule = Rule().copy(isRepresent = true)
)
}
}
}

@Preview(name = "new rule Item", showBackground = true)
@Composable
private fun Preview3() {
HousTheme {
Surface {
MainRuleItem(
Expand All @@ -118,3 +130,15 @@ private fun NewMainRulePreview() {
}
}
}

@Preview(name = "Represent and New rule Item", showBackground = true)
@Composable
private fun Preview4() {
HousTheme {
Surface {
MainRuleItem(
mainRule = Rule().copy(isNew = true, isRepresent = true)
)
}
}
}

0 comments on commit db58146

Please sign in to comment.