Skip to content

Commit 3bf2bf7

Browse files
committed
Improve preview of RetrySendMenuMenu
1 parent 9d30adf commit 3bf2bf7

File tree

1 file changed

+3
-10
lines changed
  • features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/retrysendmenu

1 file changed

+3
-10
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/retrysendmenu/RetrySendMessageMenu.kt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package io.element.android.features.messages.impl.timeline.components.retrysendmenu
1818

1919
import androidx.compose.foundation.clickable
20-
import androidx.compose.foundation.layout.Column
2120
import androidx.compose.foundation.layout.ColumnScope
2221
import androidx.compose.foundation.layout.Spacer
2322
import androidx.compose.foundation.layout.height
@@ -148,16 +147,10 @@ private fun ColumnScope.RetrySendMenuContents(
148147
)
149148
}
150149

151-
@Suppress("UNUSED_PARAMETER")
152-
@OptIn(ExperimentalMaterial3Api::class)
153150
@PreviewsDayNight
154151
@Composable
155152
internal fun RetrySendMessageMenuPreview(@PreviewParameter(RetrySendMenuStateProvider::class) state: RetrySendMenuState) = ElementPreview {
156-
// TODO restore RetrySendMessageMenuBottomSheet once the issue with bottom sheet not being previewable is fixed
157-
Column {
158-
RetrySendMenuContents(
159-
onRetry = {},
160-
onRemoveFailed = {},
161-
)
162-
}
153+
RetrySendMessageMenu(
154+
state = state,
155+
)
163156
}

0 commit comments

Comments
 (0)