Set visibility modifier of composable preview to private

pull/493/head
ratobing 2 years ago
parent 7a8414e46d
commit 1e493c0bbc

@ -104,7 +104,7 @@ fun NiaTopAppBar(
@OptIn(ExperimentalMaterial3Api::class)
@Preview("Top App Bar")
@Composable
fun NiaTopAppBarPreview() {
private fun NiaTopAppBarPreview() {
NiaTopAppBar(
titleRes = android.R.string.untitled,
navigationIcon = NiaIcons.Search,

@ -106,7 +106,7 @@ sealed interface NewsFeedUiState {
@Preview
@Composable
fun NewsFeedLoadingPreview() {
private fun NewsFeedLoadingPreview() {
NiaTheme {
LazyVerticalGrid(columns = GridCells.Adaptive(300.dp)) {
newsFeed(
@ -120,7 +120,7 @@ fun NewsFeedLoadingPreview() {
@Preview
@Preview(device = Devices.TABLET)
@Composable
fun NewsFeedContentPreview() {
private fun NewsFeedContentPreview() {
NiaTheme {
LazyVerticalGrid(columns = GridCells.Adaptive(300.dp)) {
newsFeed(

@ -256,7 +256,7 @@ fun NewsResourceTopics(
@Preview("Bookmark Button")
@Composable
fun BookmarkButtonPreview() {
private fun BookmarkButtonPreview() {
NiaTheme {
Surface {
BookmarkButton(isBookmarked = false, onClick = { })
@ -266,7 +266,7 @@ fun BookmarkButtonPreview() {
@Preview("Bookmark Button Bookmarked")
@Composable
fun BookmarkButtonBookmarkedPreview() {
private fun BookmarkButtonBookmarkedPreview() {
NiaTheme {
Surface {
BookmarkButton(isBookmarked = true, onClick = { })
@ -276,7 +276,7 @@ fun BookmarkButtonBookmarkedPreview() {
@Preview("NewsResourceCardExpanded")
@Composable
fun ExpandedNewsResourcePreview() {
private fun ExpandedNewsResourcePreview() {
NiaTheme {
Surface {
NewsResourceCardExpanded(

@ -195,7 +195,7 @@ private fun BookmarksGridPreview() {
@Preview
@Composable
fun EmptyStatePreview() {
private fun EmptyStatePreview() {
NiaTheme {
EmptyState()
}

@ -255,7 +255,7 @@ private fun TextLink(text: String, url: String) {
@Preview
@Composable
fun PreviewSettingsDialog() {
private fun PreviewSettingsDialog() {
NiaTheme {
SettingsDialog(
onDismiss = {},
@ -273,7 +273,7 @@ fun PreviewSettingsDialog() {
@Preview
@Composable
fun PreviewSettingsDialogLoading() {
private fun PreviewSettingsDialogLoading() {
NiaTheme {
SettingsDialog(
onDismiss = {},

Loading…
Cancel
Save