NTP-60706 | Deregistration decoupling (#16328)
This commit is contained in:
@@ -41,6 +41,7 @@ import com.navi.base.utils.orTrue
|
||||
import com.navi.common.checkmate.core.CheckMateManager
|
||||
import com.navi.common.checkmate.model.MetricInfo
|
||||
import com.navi.common.commoncomposables.utils.ScrollToTopListener
|
||||
import com.navi.common.commoncomposables.utils.resetScrollToTop
|
||||
import com.navi.common.network.models.RepoResult
|
||||
import com.navi.common.ui.compose.DrawerState
|
||||
import com.navi.uitron.model.UiTronResponse
|
||||
@@ -125,6 +126,7 @@ fun ProfileScreen(
|
||||
drawerState = drawerState,
|
||||
appUpdateState = appUpdateState,
|
||||
inAppUpdateBridge = activity,
|
||||
scrollToTop = { profileVM.resetScrollToTop(true, PROFILE) },
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ fun ProfileScreenWidgetRenderer(
|
||||
drawerState: () -> DrawerState,
|
||||
appUpdateState: AppUpdateState,
|
||||
inAppUpdateBridge: InAppUpdateBridge,
|
||||
scrollToTop: () -> Unit = {},
|
||||
) {
|
||||
if (widget == null) return
|
||||
return when (widget.widgetType) {
|
||||
@@ -46,7 +47,8 @@ fun ProfileScreenWidgetRenderer(
|
||||
when (widget.widgetName) {
|
||||
HomeCustomWidgetType.ProfileHeaderWidget.value ->
|
||||
AnimatedProfileContent(widget, viewModel, drawerState)
|
||||
HomeCustomWidgetType.UpiSettingsWidget.value -> UPISettingSDK(drawerState)
|
||||
HomeCustomWidgetType.UpiSettingsWidget.value ->
|
||||
UPISettingSDK(drawerState = drawerState, scrollToTop = scrollToTop)
|
||||
else -> Unit
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user