diff --git a/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeItem.kt b/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeItem.kt index 9ce7802a..b895e199 100644 --- a/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeItem.kt +++ b/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeItem.kt @@ -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 @@ -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 = {} + ) + } +} diff --git a/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeRoute.kt b/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeRoute.kt index cc731c51..c206093b 100644 --- a/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeRoute.kt +++ b/feature/news/src/main/java/com/teamwable/news/notice/NewsNoticeRoute.kt @@ -98,7 +98,7 @@ fun NewsNoticeScreen( @Preview(showBackground = true) @Composable -fun GreetingPreview() { +fun NewsNoticeScreenPreview() { WableTheme { NewsNoticeScreen( onItemClick = {},