mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Rename View and Preview to fix a name clash in the Gallery.
This commit is contained in:
+4
-4
@@ -146,7 +146,7 @@ fun ActionListView(
|
|||||||
onDismissRequest = ::onDismiss,
|
onDismissRequest = ::onDismiss,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
) {
|
) {
|
||||||
SheetContent(
|
ActionListViewContent(
|
||||||
state = state,
|
state = state,
|
||||||
onActionClick = ::onItemActionClick,
|
onActionClick = ::onItemActionClick,
|
||||||
onEmojiReactionClick = ::onEmojiReactionClick,
|
onEmojiReactionClick = ::onEmojiReactionClick,
|
||||||
@@ -161,7 +161,7 @@ fun ActionListView(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun SheetContent(
|
private fun ActionListViewContent(
|
||||||
state: ActionListState,
|
state: ActionListState,
|
||||||
onActionClick: (TimelineItemAction) -> Unit,
|
onActionClick: (TimelineItemAction) -> Unit,
|
||||||
onEmojiReactionClick: (String) -> Unit,
|
onEmojiReactionClick: (String) -> Unit,
|
||||||
@@ -442,10 +442,10 @@ private fun EmojiButton(
|
|||||||
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
internal fun SheetContentPreview(
|
internal fun ActionListViewContentPreview(
|
||||||
@PreviewParameter(ActionListStateProvider::class) state: ActionListState
|
@PreviewParameter(ActionListStateProvider::class) state: ActionListState
|
||||||
) = ElementPreview {
|
) = ElementPreview {
|
||||||
SheetContent(
|
ActionListViewContent(
|
||||||
state = state,
|
state = state,
|
||||||
onActionClick = {},
|
onActionClick = {},
|
||||||
onEmojiReactionClick = {},
|
onEmojiReactionClick = {},
|
||||||
|
|||||||
+4
-4
@@ -89,14 +89,14 @@ fun ReactionSummaryView(
|
|||||||
sheetState = sheetState,
|
sheetState = sheetState,
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
) {
|
) {
|
||||||
SheetContent(summary = state.target)
|
ReactionSummaryViewContent(summary = state.target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalFoundationApi::class)
|
@OptIn(ExperimentalFoundationApi::class)
|
||||||
@Composable
|
@Composable
|
||||||
private fun SheetContent(
|
private fun ReactionSummaryViewContent(
|
||||||
summary: ReactionSummaryState.Summary,
|
summary: ReactionSummaryState.Summary,
|
||||||
) {
|
) {
|
||||||
val animationScope = rememberCoroutineScope()
|
val animationScope = rememberCoroutineScope()
|
||||||
@@ -274,8 +274,8 @@ private fun SenderRow(
|
|||||||
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
internal fun SheetContentPreview(
|
internal fun ReactionSummaryViewContentPreview(
|
||||||
@PreviewParameter(ReactionSummaryStateProvider::class) state: ReactionSummaryState
|
@PreviewParameter(ReactionSummaryStateProvider::class) state: ReactionSummaryState
|
||||||
) = ElementPreview {
|
) = ElementPreview {
|
||||||
SheetContent(summary = state.target as ReactionSummaryState.Summary)
|
ReactionSummaryViewContent(summary = state.target as ReactionSummaryState.Summary)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user