Rename View and Preview to fix a name clash in the Gallery.
This commit is contained in:
@@ -146,7 +146,7 @@ fun ActionListView(
|
||||
onDismissRequest = ::onDismiss,
|
||||
modifier = modifier,
|
||||
) {
|
||||
SheetContent(
|
||||
ActionListViewContent(
|
||||
state = state,
|
||||
onActionClick = ::onItemActionClick,
|
||||
onEmojiReactionClick = ::onEmojiReactionClick,
|
||||
@@ -161,7 +161,7 @@ fun ActionListView(
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun SheetContent(
|
||||
private fun ActionListViewContent(
|
||||
state: ActionListState,
|
||||
onActionClick: (TimelineItemAction) -> Unit,
|
||||
onEmojiReactionClick: (String) -> Unit,
|
||||
@@ -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 = {},
|
||||
|
||||
@@ -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()
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user