Rename View to follow naming convention and file name
This commit is contained in:
parent
519d24d3f0
commit
9411b309d2
3 changed files with 13 additions and 13 deletions
|
|
@ -46,7 +46,7 @@ class StartChatNode @AssistedInject constructor(
|
|||
override fun View(modifier: Modifier) {
|
||||
val state = presenter.present()
|
||||
val activity = requireNotNull(LocalActivity.current)
|
||||
CreateRoomRootView(
|
||||
StartChatView(
|
||||
state = state,
|
||||
modifier = modifier,
|
||||
onCloseClick = this::navigateUp,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ import io.element.android.libraries.ui.strings.CommonStrings
|
|||
import kotlinx.collections.immutable.persistentListOf
|
||||
|
||||
@Composable
|
||||
fun CreateRoomRootView(
|
||||
fun StartChatView(
|
||||
state: StartChatState,
|
||||
onCloseClick: () -> Unit,
|
||||
onNewRoomClick: () -> Unit,
|
||||
|
|
@ -239,9 +239,9 @@ private fun CreateRoomActionButton(
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun CreateRoomRootViewPreview(@PreviewParameter(StartChatStateProvider::class) state: StartChatState) =
|
||||
internal fun StartChatViewPreview(@PreviewParameter(StartChatStateProvider::class) state: StartChatState) =
|
||||
ElementPreview {
|
||||
CreateRoomRootView(
|
||||
StartChatView(
|
||||
state = state,
|
||||
onCloseClick = {},
|
||||
onNewRoomClick = {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue