Restore commented out code.

Fix regression from #5253
This commit is contained in:
Benoit Marty 2025-09-08 16:42:58 +02:00
parent 943bbee131
commit 20b6f0d6ee

View file

@ -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,
// ) )
} }
} }