Skip to content

Commit

Permalink
Rename View and Preview to fix a name clash in the Gallery.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Oct 18, 2024
1 parent aa81322 commit 27e6376
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fun ActionListView(
onDismissRequest = ::onDismiss,
modifier = modifier,
) {
SheetContent(
ActionListViewContent(
state = state,
onActionClick = ::onItemActionClick,
onEmojiReactionClick = ::onEmojiReactionClick,
Expand All @@ -161,7 +161,7 @@ fun ActionListView(
}

@Composable
private fun SheetContent(
private fun ActionListViewContent(
state: ActionListState,
onActionClick: (TimelineItemAction) -> Unit,
onEmojiReactionClick: (String) -> Unit,
Expand Down Expand Up @@ -442,10 +442,10 @@ private fun EmojiButton(

@PreviewsDayNight
@Composable
internal fun SheetContentPreview(
internal fun ActionListViewContentPreview(
@PreviewParameter(ActionListStateProvider::class) state: ActionListState
) = ElementPreview {
SheetContent(
ActionListViewContent(
state = state,
onActionClick = {},
onEmojiReactionClick = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ fun ReactionSummaryView(
sheetState = sheetState,
modifier = modifier
) {
SheetContent(summary = state.target)
ReactionSummaryViewContent(summary = state.target)
}
}
}

@OptIn(ExperimentalFoundationApi::class)
@Composable
private fun SheetContent(
private fun ReactionSummaryViewContent(
summary: ReactionSummaryState.Summary,
) {
val animationScope = rememberCoroutineScope()
Expand Down Expand Up @@ -274,8 +274,8 @@ private fun SenderRow(

@PreviewsDayNight
@Composable
internal fun SheetContentPreview(
internal fun ReactionSummaryViewContentPreview(
@PreviewParameter(ReactionSummaryStateProvider::class) state: ReactionSummaryState
) = ElementPreview {
SheetContent(summary = state.target as ReactionSummaryState.Summary)
ReactionSummaryViewContent(summary = state.target as ReactionSummaryState.Summary)
}

0 comments on commit 27e6376

Please sign in to comment.