parent
943bbee131
commit
20b6f0d6ee
1 changed files with 12 additions and 12 deletions
|
|
@ -26,7 +26,7 @@ import io.element.android.libraries.architecture.inputs
|
||||||
class ViewFolderNode(
|
class ViewFolderNode(
|
||||||
@Assisted buildContext: BuildContext,
|
@Assisted buildContext: BuildContext,
|
||||||
@Assisted plugins: List<Plugin>,
|
@Assisted plugins: List<Plugin>,
|
||||||
// presenterFactory: ViewFolderPresenter.Factory,
|
presenterFactory: ViewFolderPresenter.Factory,
|
||||||
) : Node(buildContext, plugins = plugins) {
|
) : Node(buildContext, plugins = plugins) {
|
||||||
data class Inputs(
|
data class Inputs(
|
||||||
val canGoUp: Boolean,
|
val canGoUp: Boolean,
|
||||||
|
|
@ -40,10 +40,10 @@ class ViewFolderNode(
|
||||||
|
|
||||||
private val inputs: Inputs = inputs()
|
private val inputs: Inputs = inputs()
|
||||||
|
|
||||||
// private val presenter = presenterFactory.create(
|
private val presenter = presenterFactory.create(
|
||||||
// canGoUp = inputs.canGoUp,
|
canGoUp = inputs.canGoUp,
|
||||||
// path = inputs.path,
|
path = inputs.path,
|
||||||
// )
|
)
|
||||||
|
|
||||||
private fun onBackClick() {
|
private fun onBackClick() {
|
||||||
plugins<Callback>().forEach { it.onBackClick() }
|
plugins<Callback>().forEach { it.onBackClick() }
|
||||||
|
|
@ -55,12 +55,12 @@ class ViewFolderNode(
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
override fun View(modifier: Modifier) {
|
override fun View(modifier: Modifier) {
|
||||||
// val state = presenter.present()
|
val state = presenter.present()
|
||||||
// ViewFolderView(
|
ViewFolderView(
|
||||||
// state = state,
|
state = state,
|
||||||
// modifier = modifier,
|
modifier = modifier,
|
||||||
// onNavigateTo = ::onNavigateTo,
|
onNavigateTo = ::onNavigateTo,
|
||||||
// onBackClick = ::onBackClick,
|
onBackClick = ::onBackClick,
|
||||||
// )
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue