Skip to content

Commit

Permalink
#117 [MOD] : preview 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonji-sw committed Nov 25, 2024
1 parent ecb6984 commit 0b7951f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.teamwable.designsystem.theme.WableTheme
import com.teamwable.model.news.NewsInfoModel
Expand All @@ -37,3 +38,14 @@ fun NewsNoticeItem(
Text(text = data.newsText, color = WableTheme.colors.gray600, maxLines = 2, style = WableTheme.typography.body04)
}
}

@Preview(showBackground = true)
@Composable
fun NewsNoticeItemPreview() {
WableTheme {
NewsNoticeItem(
data = NewsInfoModel(1, "제목", "내용", null, "2024-01-10 11:47:18"),
onItemClick = {}
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fun NewsNoticeScreen(

@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
fun NewsNoticeScreenPreview() {
WableTheme {
NewsNoticeScreen(
onItemClick = {},
Expand Down

0 comments on commit 0b7951f

Please sign in to comment.