mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/26605 - Clean up RecentTabViewHolder
This commit is contained in:
parent
02dddf9610
commit
35e715b06b
@ -5,7 +5,6 @@
|
||||
package org.mozilla.fenix.home.recenttabs.view
|
||||
|
||||
import android.view.View
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.platform.ComposeView
|
||||
import androidx.compose.ui.res.stringResource
|
||||
@ -22,7 +21,6 @@ import org.mozilla.fenix.home.recenttabs.interactor.RecentTabInteractor
|
||||
* @param composeView [ComposeView] which will be populated with Jetpack Compose UI content.
|
||||
* @param recentTabInteractor [RecentTabInteractor] which will have delegated to all user recent
|
||||
* tab interactions.
|
||||
* @param recentSyncedTabInteractor [RecentSyncedTabInteractor] which will have delegated to all user
|
||||
* recent synced tab interactions.
|
||||
*/
|
||||
class RecentTabViewHolder(
|
||||
@ -45,7 +43,6 @@ class RecentTabViewHolder(
|
||||
override fun Content() {
|
||||
val recentTabs = components.appStore.observeAsComposableState { state -> state.recentTabs }
|
||||
|
||||
Column {
|
||||
RecentTabs(
|
||||
recentTabs = recentTabs.value ?: emptyList(),
|
||||
onRecentTabClick = { recentTabInteractor.onRecentTabClicked(it) },
|
||||
@ -58,4 +55,3 @@ class RecentTabViewHolder(
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user